[svgwg] Is the `path()` function allowed for the `d` property? (#939)

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

== Is the `path()` function allowed for the `d` property? ==
The [spec for the `d` property](https://www.w3.org/TR/SVG2/paths.html#TheDProperty) says:

> The `<string>` value specifies a shape using a path data string. The contents of the `<string>` value must match the svg-path EBNF grammar defined below, and errors within the string are handled according to the rules in the Path Data Error Handling section. If the path data string contains no valid commands, then the behavior is the same as the none value.

Looking at the [grammar](https://www.w3.org/TR/SVG2/paths.html#PathDataBNF) I do not see any mention of the [`path()` function](https://drafts.csswg.org/css-shapes/#funcdef-basic-shape-path). However, the bulk of the [WPT coverage](https://github.com/web-platform-tests/wpt/tree/master/svg/path/property) for the `d` property use the `path()` function and Chrome and Firefox support it.

Am I misreading the spec? Should the SVG spec allow the `path()` function to be used? Should the WPT coverage be updated to _not_ use the `path()` function?

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 April 2024 13:26:51 UTC