diff --git a/master/paths.html b/master/paths.html index 4a7b4014..15974459 100644 --- a/master/paths.html +++ b/master/paths.html @@ -177,7 +177,7 @@

Specifying path data: the 'd' Value: - none | <string> + none | path(<string>) Initial: @@ -231,6 +231,10 @@

Specifying path data: the 'd'none value.

+

When 'd' is parsed as an attribute, it is parsed according to the + svg-path EBNF + grammar, instead of the CSS grammar given above.

+

For animation, two 'd' property values can only be interpolated smoothly when the path data strings contain have the @@ -243,26 +247,51 @@

Specifying path data: the 'd'discrete animation type.

+

+ Lowercase commands (with relative coordinates) are converted to equivalent uppercase commands + (with absolute coordinates) before determining if the path data strings have the same structure. +

If the list of path data commands have the same structure, then each parameter to each path data command must be interpolated separately as real numbers. Flags and booleans must be interpolated as - fractions between zero and one, with any non-zero value considered - to be a value of one/true. + integer values clamped between zero and one.

-

- Resolved that "d will become a presentation attribute (no name - change) with path data string as value" at - London - Editor's Meeting. + + +

+ +

The 'd' attribute

+ +
+
+ + + + + + + + + + + + + +
NameValueInitial valueAnimatable
d"path data"As if not specified.yes
+
+
+ +

+ The contents of the attribute 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 if the attribute was not specified.

-
+

Path data

-

The following sections list the commands that canbe used +

The following sections list the commands that can be used in path data strings. Those that draw straight line segments include the lineto commands (L, l, diff --git a/master/propidx.html b/master/propidx.html index fd6e9f91..4b523a58 100644 --- a/master/propidx.html +++ b/master/propidx.html @@ -96,6 +96,16 @@

Property Index

yes as specified + + 'd' + none | path(<string>) + none + 'path' elements + no + N/A + visual + yes + 'direction' ltr | rtl diff --git a/master/types.html b/master/types.html index 52b62e12..e236b8fc 100644 --- a/master/types.html +++ b/master/types.html @@ -143,7 +143,11 @@

Attribute syntax

unitless length and angles to be used in presentation attribute while disallowing them in corresponding property values.

-

Note that all presentation attributes, since they are +

The 'd' presentation attribute is an exception, it is parsed + according to the svg-path + EBNF grammar.

+ +

Note that all other presentation attributes, since they are defined by reference to their corresponding CSS properties, are defined using the CSS Value Definition Syntax.