Jump to content

Ordering of defs element in SVG export


Recommended Posts

Hi,

I’ve been looking into an issue with parsing SVG files exported from Affinity Designer and have noticed that the ‘defs’ element is consistently exported after the referencing elements.

While many SVG parsers assume order independence, it is considered best practice to write the ‘defs’ element before the referencing elements are described in 5.3.2 The ‘defs’ element as follows:

“To provide some SVG user agents with an opportunity to implement efficient implementations in streaming environments, creators of SVG content are encouraged to place all elements which are targets of local IRI references within a ‘defs’ element which is a direct child of one of the ancestors of the referencing element.”

Could you please let me know if plan to update your SVG export to incorporate this recommendation in a future release?

Many thanks,

Derek

testwithgradient.svg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.