[svgwg] Issue: [svg-native] Should declarations be required to be before all their uses? (#669) marked as SVG Native

dirkschulze has just labeled an issue for https://github.com/w3c/svgwg as "SVG Native":

== [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.

See https://github.com/w3c/svgwg/issues/669

Received on Tuesday, 16 April 2019 05:57:36 UTC