Skip to content

Commit

Permalink
'd' presentation attribute: use path() function
Browse files Browse the repository at this point in the history
This brings the spec, the web platform tests and the only
shipping implementation (Chrome) into consistency:

  none | path(<string>)

closes w3c#320
  • Loading branch information
ericwilligers committed Nov 5, 2018
1 parent 4f1ed86 commit 3827d13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
15 changes: 6 additions & 9 deletions master/paths.html
Expand Up @@ -177,7 +177,7 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
</tr>
<tr>
<th>Value:</th>
<td>none | <a>&lt;string&gt;</a></td>
<td>none | path(<a>&lt;string&gt;</a>)</td>
</tr>
<tr>
<th>Initial:</th>
Expand Down Expand Up @@ -243,6 +243,10 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
<a href="https://drafts.csswg.org/web-animations/#discrete-animation-type-section">discrete</a>
animation type.
</p>
<p>
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.
</p>
<p>
If the list of path data commands have the same structure, then each
parameter to each path data command must be
Expand All @@ -253,16 +257,9 @@ <h3 id="TheDProperty">Specifying path data: the <span class='property'>'d'</span
to be a value of one/true.
</p>

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

</div>

<p>The following sections list the commands that canbe used
<p>The following sections list the commands that can be used
in path data strings. Those that
draw straight line segments include the <a href="paths.html#PathDataLinetoCommands">lineto commands</a>
(<strong>L</strong>, <strong>l</strong>,
Expand Down
10 changes: 10 additions & 0 deletions master/propidx.html
Expand Up @@ -96,6 +96,16 @@ <h1>Property Index</h1>
<td>yes</td>
<td>as specified</td>
</tr>
<tr>
<th><a>'d'</a></th>
<td>none | path(<a>&lt;string&gt;</a>)</td>
<td>none</td>
<td><a>'path'</a> elements</td>
<td>no</td>
<td>N/A</td>
<td><a href="https://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td>
<td>yes</td>
</tr>
<tr>
<th><a>'direction'</a></th>
<td>ltr | rtl </td>
Expand Down

0 comments on commit 3827d13

Please sign in to comment.