Skip to content

Commit 3d8486a

Browse files
committed
d attribute has different syntax than property
1 parent 6bfd181 commit 3d8486a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

master/paths.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
230230
If the path data string contains no valid commands, then the behavior
231231
is the same as the <span class='prop-value'>none</span> value.</p>
232232

233+
<p>When <a>'d'</a> is parsed as an attribute, it is parsed according to the
234+
<a href="#PathDataBNF">svg-path</a> <a href="types.html#syntax">EBNF
235+
grammar</a>, instead of the CSS grammar given above.</p>
236+
233237
<p>
234238
For animation, two <a>'d'</a> property values can only be
235239
interpolated smoothly when the path data strings contain have the

master/types.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ <h2 id="syntax">Attribute syntax</h2>
144144
unitless length and angles to be used in presentation attribute while
145145
disallowing them in corresponding property values.</p>
146146

147-
<p class="note">Note that all <a>presentation attributes</a>, since they are
147+
<p>The <a>'d'</a> presentation attribute is an exception, it is parsed
148+
according to the <a href="paths.html#PathDataBNF">svg-path</a>
149+
<a href="types.html#syntax">EBNF grammar</a>.</p>
150+
151+
<p class="note">Note that all other <a>presentation attributes</a>, since they are
148152
defined by reference to their corresponding CSS properties, are defined using
149153
the CSS Value Definition Syntax.</p>
150154

0 commit comments

Comments
 (0)