| 1 |
<?xml version="1.0" standalone="no"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
| 3 |
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 4 |
<svg width="100%" height="100%" viewBox="0 0 500 120" |
| 5 |
xmlns="http://www.w3.org/2000/svg" version="1.1"> |
| 6 |
<desc> |
| 7 |
Example tspan05 - propagation of rotation values to nested tspan elements. |
| 8 |
</desc> |
| 9 |
<text id="parent" font-family="Arial, sans-serif" font-size="32" fill="red" x="40" y="40" |
| 10 |
rotate="5,15,25,35,45,55"> |
| 11 |
Not |
| 12 |
|
| 13 |
<tspan id="child1" rotate="-10,-20,-30,-40" fill="orange"> |
| 14 |
all characters |
| 15 |
|
| 16 |
<tspan id="child2" rotate="70,60,50,40,30,20,10" fill="yellow"> |
| 17 |
in |
| 18 |
|
| 19 |
<tspan id="child3"> |
| 20 |
the |
| 21 |
</tspan> |
| 22 |
</tspan> |
| 23 |
|
| 24 |
<tspan id="child4" fill="orange" x="40" y="90"> |
| 25 |
text |
| 26 |
</tspan> |
| 27 |
|
| 28 |
have a |
| 29 |
</tspan> |
| 30 |
|
| 31 |
<tspan id="child5" rotate="-10" fill="blue"> |
| 32 |
specified |
| 33 |
</tspan> |
| 34 |
|
| 35 |
rotation |
| 36 |
</text> |
| 37 |
|
| 38 |
<!-- Show outline of canvas using 'rect' element --> |
| 39 |
<rect x="1" y="1" width="498" height="118" fill="none" |
| 40 |
stroke="blue" stroke-width="2" /> |
| 41 |
</svg> |