| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <title>CSS Writing Modes: parsing SVG 1.1 writing-mode values</title> | |
| 3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> | |
| 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#svg-writing
-mode"> | |
| 5 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the SVG 1.1 writing-mode values."> | |
| 6 <meta name="flags" content="dom svg may"> | |
| 7 <script src="../../../resources/testharness.js"></script> | |
| 8 <script src="../../../resources/testharnessreport.js"></script> | |
| 9 | |
| 10 <div style="-webkit-writing-mode: lr-tb" | |
| 11 data-expected="lr-tb"></div> | |
| 12 <div style="-webkit-writing-mode: rl-tb" | |
| 13 data-expected="rl-tb"></div> | |
| 14 | |
| 15 <div style="-webkit-writing-mode: tb-rl" | |
| 16 data-expected="tb-rl"></div> | |
| 17 | |
| 18 <script> | |
| 19 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { | |
| 20 test(function () { | |
| 21 var actual = getComputedStyle(element).writingMode; | |
| 22 assert_equals(actual, element.dataset.expected); | |
| 23 }, element.title || element.getAttribute("style")); | |
| 24 }); | |
| 25 </script> | |
| OLD | NEW |