| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>CSS Writing Modes: parsing writing-mode</title> | 2 <title>CSS Writing Modes: parsing writing-mode</title> |
| 3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> | 3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> |
| 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"
> | 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#block-flow"
> |
| 5 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the writing-mode property."> | 5 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the writing-mode property."> |
| 6 <meta name="flags" content="dom"> | 6 <meta name="flags" content="dom"> |
| 7 <script src="../../../resources/testharness.js"></script> | 7 <script src="/resources/testharness.js"></script> |
| 8 <script src="../../../resources/testharnessreport.js"></script> | 8 <script src="/resources/testharnessreport.js"></script> |
| 9 | 9 |
| 10 <div | 10 <div |
| 11 data-expected="horizontal-tb" title="writing-mode initial value"></div> | 11 data-expected="horizontal-tb" title="writing-mode initial value"></div> |
| 12 | 12 |
| 13 <div style="writing-mode: vertical-rl" | 13 <div style="writing-mode: vertical-rl" |
| 14 data-expected="vertical-rl"></div> | 14 data-expected="vertical-rl"></div> |
| 15 <div style="writing-mode: vertical-lr" | 15 <div style="writing-mode: vertical-lr" |
| 16 data-expected="vertical-lr"></div> | 16 data-expected="vertical-lr"></div> |
| 17 | 17 |
| 18 <div style="writing-mode: vertical-rl"> | 18 <div style="writing-mode: vertical-rl"> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 </div> | 34 </div> |
| 35 | 35 |
| 36 <script> | 36 <script> |
| 37 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { | 37 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { |
| 38 test(function () { | 38 test(function () { |
| 39 var actual = getComputedStyle(element).writingMode; | 39 var actual = getComputedStyle(element).writingMode; |
| 40 assert_equals(actual, element.dataset.expected); | 40 assert_equals(actual, element.dataset.expected); |
| 41 }, element.title || element.getAttribute("style")); | 41 }, element.title || element.getAttribute("style")); |
| 42 }); | 42 }); |
| 43 </script> | 43 </script> |
| OLD | NEW |