| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>CSS Writing Modes: parsing text-orientation</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/#text-orient
ation"> |
| 5 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the text-orientation property."> |
| 6 <meta name="flags" content="dom"> |
| 7 <script src="../../../resources/testharness.js"></script> |
| 8 <script src="../../../resources/testharnessreport.js"></script> |
| 9 |
| 10 <div |
| 11 data-expected="mixed" title="text-orientation initial value"></div> |
| 12 |
| 13 <div style="-webkit-text-orientation: upright" |
| 14 data-expected="upright"></div> |
| 15 <div style="-webkit-text-orientation: sideways" |
| 16 data-expected="sideways"></div> |
| 17 <div style="-webkit-text-orientation: sideways-right" |
| 18 data-expected="sideways-right"></div> |
| 19 |
| 20 <div style="-webkit-text-orientation: upright"> |
| 21 <div |
| 22 data-expected="upright" title="text-orientation should inherit"></div> |
| 23 |
| 24 <div style="-webkit-text-orientation: mixed" |
| 25 data-expected="mixed"></div> |
| 26 |
| 27 <div style="-webkit-text-orientation: initial" |
| 28 data-expected="mixed"></div> |
| 29 <div style="-webkit-text-orientation: inherit" |
| 30 data-expected="upright"></div> |
| 31 |
| 32 <div style="-webkit-text-orientation: foo" |
| 33 data-expected="upright"></div> |
| 34 </div> |
| 35 |
| 36 <script> |
| 37 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { |
| 38 test(function () { |
| 39 var actual = getComputedStyle(element).textOrientation; |
| 40 assert_equals(actual, element.dataset.expected); |
| 41 }, element.title || element.getAttribute("style")); |
| 42 }); |
| 43 </script> |
| OLD | NEW |