[svgwg] [svg-native] Should declarations be required to be before all their uses? (#669)

litherum has just created a new issue for https://github.com/w3c/svgwg:

== [svg-native] Should declarations be required to be before all their uses? ==
@dirkschulze [says](https://github.com/w3c/svgwg/issues/657#issuecomment-482778343):
> I'd propose that elements that get referenced should be specified before they get referenced the first time. If they are not, the behavior is unspecified. This makes it easier for SVG viewers that render while they parse. Otherwise the document must be parsed first and it would be required to have an internal DOM. Example:
> - `<rect fill="url(#gradient)/><linearGradient id="gradient"/>` **unspecified**.
> - `<linearGradient id="gradient"/><rect fill="url(#gradient)/>` works.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/669 using your GitHub account

Received on Tuesday, 16 April 2019 01:19:59 UTC