The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other SVG : DEFS before USE works for all SVG, but USE before DEFS doesn't

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #171253
    Gilles FRANCOIS

    Hello there
    Tinkering with SVG I encountered a bug (?):

    if my DEFS are defined before my USE tags, all my SVGs work well and renders has expected : (both icons showing up)

    But if DEFS are defined after USE tags, some SVG work, and some don’t : (the G+ icon doesn’t show up)

    Anybody know what the problem is ?

    (I tested this on Chrome and Safari)


    I’d have to read the spec (i.e., I do not know for certain), but that is what I would expect. Why would you be able to <use> something that doesn’t exist yet?

    …perhaps someone else here knows for certain?

    Gilles FRANCOIS

    Well I thought like you but .. Some SVG are in fact rendering (cf. my use case presented with my two pens)

    I think the bug only concerns shapes surrounded by G tags. Still testing it right now

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.