Skip to content

Commit 71900f5

Browse files
committed
'd' presentation attribute: use path() function
This brings the spec, the web platform tests and the only shipping implementation (Chrome) into consistency: none | path(<string>) closes #320
1 parent e201ef0 commit 71900f5

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

master/paths.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
237237
</tr>
238238
<tr>
239239
<th>Value:</th>
240-
<td>none | <a>&lt;string&gt;</a></td>
240+
<td>none | path(<a>&lt;string&gt;</a>)</td>
241241
</tr>
242242
<tr>
243243
<th>Initial:</th>
@@ -303,6 +303,10 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
303303
<a href="https://w3c.github.io/web-animations/#discrete-animation-type-section">discrete</a>
304304
animation type.
305305
</p>
306+
<p>
307+
Lowercase commands (with relative coordinates) are converted to equivalent uppercase commands
308+
(with absolute coordinates) before determining if the path data strings have the same structure.
309+
</p>
306310
<p>
307311
If the list of path data commands have the same structure, then each
308312
parameter to each path data command must be
@@ -313,16 +317,9 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
313317
to be a value of one/true.
314318
</p>
315319

316-
<p class="annotation">
317-
Resolved that "d will become a presentation attribute (no name
318-
change) with path data string as value" at
319-
<a href="https://www.w3.org/2016/04/21-svg-minutes.html">London
320-
Editor's Meeting</a>.
321-
</p>
322-
323320
</div>
324321

325-
<p>The following sections list the commands that canbe used
322+
<p>The following sections list the commands that can be used
326323
in path data strings. Those that
327324
draw straight line segments include the <a href="paths.html#PathDataLinetoCommands">lineto commands</a>
328325
(<strong>L</strong>, <strong>l</strong>,

master/propidx.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ <h1>Property Index</h1>
137137
<td><a href="https://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a>, <a href="https://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#interactive-media-group"> interactive</a></td>
138138
<td>yes</td>
139139
</tr>
140+
<tr>
141+
<th><a>'d'</a></th>
142+
<td>none | path(<a>&lt;string&gt;</a>)</td>
143+
<td>none</td>
144+
<td><a>'path'</a> elements</td>
145+
<td>no</td>
146+
<td>N/A</td>
147+
<td><a href="https://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td>
148+
<td>yes</td>
149+
</tr>
140150
<tr>
141151
<th><a>'direction'</a></th>
142152
<td>ltr | rtl </td>

0 commit comments

Comments
 (0)