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 3fe8be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 All @@ -4450,7 +4450,7 @@ <h3 id="TextPathAttributes">Attributes</h3>
&lt;svg xmlns="http://www.w3.org/2000/svg"&gt;
&lt;text <span style="font-weight:bold; color:blue">transform="rotate(45)"</span>&gt;
&lt;textPath <span
style="font-weight:bold; color:green">path="M0,20 L80,40 160,20"</span>
style="font-weight:bold; color:green">d="M0,20 L80,40 160,20"</span>
&gt;Text on a path&lt;/textPath&gt;
&lt;/text&gt;
&lt;/svg&gt;
Expand Down

0 comments on commit 3fe8be4

Please sign in to comment.