| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override</ti
tle> | 2 <title>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override</ti
tle> |
| 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/css2/visuren.html#direction"> | 4 <link rel="help" href="https://drafts.csswg.org/css2/visuren.html#direction"> |
| 5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#unicode-bid
i"> | 5 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#unicode-bid
i"> |
| 6 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the unicode-bidi: normal, embed, bidi-override."> | 6 <meta name="assert" content="This test asserts the parser and getComputedStyle w
orks correctly for the unicode-bidi: normal, embed, bidi-override."> |
| 7 <meta name="flags" content="dom"> | 7 <meta name="flags" content="dom"> |
| 8 <script src="../../../resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="../../../resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 | 10 |
| 11 <div title="Initial value of unicode-bidi" | 11 <div title="Initial value of unicode-bidi" |
| 12 data-expected="normal"></div> | 12 data-expected="normal"></div> |
| 13 | 13 |
| 14 <div style="unicode-bidi: embed; unicode-bidi: normal" | 14 <div style="unicode-bidi: embed; unicode-bidi: normal" |
| 15 data-expected="normal"></div> | 15 data-expected="normal"></div> |
| 16 <div style="unicode-bidi: embed" | 16 <div style="unicode-bidi: embed" |
| 17 data-expected="embed"></div> | 17 data-expected="embed"></div> |
| 18 <div style="unicode-bidi: bidi-override" | 18 <div style="unicode-bidi: bidi-override" |
| 19 data-expected="bidi-override"></div> | 19 data-expected="bidi-override"></div> |
| 20 | 20 |
| 21 <div style="unicode-bidi: embed"> | 21 <div style="unicode-bidi: embed"> |
| 22 <div title="unicode-bidi should not inherit" | 22 <div title="unicode-bidi should not inherit" |
| 23 data-expected="normal"></div> | 23 data-expected="normal"></div> |
| 24 </div> | 24 </div> |
| 25 | 25 |
| 26 <script> | 26 <script> |
| 27 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { | 27 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct
ion (element) { |
| 28 test(function () { | 28 test(function () { |
| 29 var actual = getComputedStyle(element).unicodeBidi; | 29 var actual = getComputedStyle(element).unicodeBidi; |
| 30 assert_equals(actual, element.dataset.expected); | 30 assert_equals(actual, element.dataset.expected); |
| 31 }, element.title || element.getAttribute("style")); | 31 }, element.title || element.getAttribute("style")); |
| 32 }); | 32 }); |
| 33 </script> | 33 </script> |
| OLD | NEW |