writing-mode-parsing-sideways-rl-001.html (891B)
1 <!DOCTYPE html> 2 <title>CSS Writing Modes: parsing writing-mode: sideways-rl</title> 3 <link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com"> 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#block-flow"> 5 <meta name="assert" content="This test asserts the parser and getComputedStyle works correctly for the writing-mode: sideways-rl."> 6 <meta name="flags" content="dom"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 10 <div style="writing-mode: sideways-rl" 11 data-expected="sideways-rl"></div> 12 13 <script> 14 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) { 15 test(function () { 16 var actual = getComputedStyle(element).writingMode; 17 assert_equals(actual, element.dataset.expected); 18 }, element.title || element.getAttribute("style")); 19 }); 20 </script>