[svgwg] Pull Request: <path d> parsing spec needs a special case to not use CSS syntax

SimonSapin has just submitted a new pull request for https://github.com/w3c/svgwg:

== <path d> parsing spec needs a special case to not use CSS syntax ==
When reading the spec literally before this changes, https://svgwg.org/svg2-draft/styling.html#PresentationAttributes specifies that all presentation properties are parsed according to https://svgwg.org/svg2-draft/types.html#presentation-attribute-css-value

For the `d` property, this means the CSS grammar `none | <string>`.

The following would be valid:

* `<path d="none">`
* `<path d="'M 100 100 L 300 100 L 200 300 z'">` (not the single quotes)
* `<path d="/**/'M 100 100 \L \33 00 100 L 200 300 z'">` (equivalent to the previous)

But `<path d="M 100 100 L 300 100 L 200 300 z">` or indeed any SVG 1.1 path would not be valid because they parse as CSS ident and number tokens, not as a `<string>`.

https://github.com/w3c/svgwg/issues/320 poposes changing the syntax of the `d` CSS propery to be even further to the 1.1 attribute syntax.

This does not appear to be an intentional change from SVG 1.1, so this pull request "reverts" it.

See https://github.com/w3c/svgwg/pull/620

Received on Thursday, 27 December 2018 18:39:37 UTC