Skip to content

Commit

Permalink
textPath example: path -> d attribute
Browse files Browse the repository at this point in the history
No name change for `d` attribute. See ANNOTATION 1:
https://www.w3.org/TR/SVG/paths.html#PathElement
  • Loading branch information
speleo3 committed Apr 30, 2020
1 parent ac68ee6 commit b45232d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -4413,7 +4413,7 @@ <h3 id="TextPathAttributes">Attributes</h3>
style="font-weight:bold; color:red">transform="translate(25,25)"</span>&gt;
&lt;defs&gt;
&lt;path id="path1" <span
style="font-weight:bold; color:green">transform="scale(2)"</span> path="M0,10 L40,20 80,10" fill="none" stroke="red"/&gt;
style="font-weight:bold; color:green">transform="scale(2)"</span> d="M0,10 L40,20 80,10" fill="none" stroke="red"/&gt;
&lt;/defs&gt;
&lt;/g&gt;
&lt;text <span
Expand All @@ -4433,7 +4433,7 @@ <h3 id="TextPathAttributes">Attributes</h3>
style="font-weight:bold; color:blue">transform="rotate(45)"</span>&gt;
&lt;defs&gt;
&lt;path id="path1" <span
style="font-weight:bold; color:green">transform="scale(2)"</span> path="M0,10 L40,20 80,10" fill="none" stroke="red"/&gt;
style="font-weight:bold; color:green">transform="scale(2)"</span> d="M0,10 L40,20 80,10" fill="none" stroke="red"/&gt;
&lt;/defs&gt;
&lt;text&gt;
&lt;textPath href="#path1"&gt;Text on a path&lt;/textPath&gt;
Expand Down

0 comments on commit b45232d

Please sign in to comment.