svg-aliasing-002.html (1132B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>SVG writing modes values parsed as aliases</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#svg-writing-mode"> 6 <link rel="match" href="reference/svg-aliasing-002-ref.html" 7 <meta name="assert" content="The legacy SVG writing mode values are parsed as simple aliases of the newer ones, and do not have side effects on bidi."> 8 <meta name="flags" content="may"> <!-- "may" because the support for these values is optional--> 9 10 <p>The test passes if you can see “1 2 3” (without the quotation marks) 3 times below going top-to-bottom. 11 If any of them is reversed (going bottom to top), the test fails.</p> 12 <svg 13 xmlns="http://www.w3.org/2000/svg" 14 width="300" 15 height="600"> 16 <g style="direction: ltr"> 17 <text x="50" y="50" style="writing-mode: tb; fill: blue;">1 2 3</text> 18 </g> 19 <g> 20 <text x="125" y="50" style="writing-mode: tb; fill: blue;">1 2 3</text> 21 </g> 22 <g style="direction: rtl"> 23 <text x="200" y="80" style="writing-mode: tb; fill: blue;">3 2 1</text> 24 </g> 25 </svg>