Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / overflow-rtl-vertical-origin.html
blobf9d2b794d4640602ec08208ae941312280663842
1 <body>
2 <p>This tests that the scroll origin for boxes with -webkit-writing-mode:vertical-rl; direction:rtl; overflow:scroll is correct.</p>
3 <div id="test" style="-webkit-writing-mode:vertical-rl; direction:rtl; overflow:scroll; width: 200px; height: 200px">
4 <div style="height: 300px; width: 100px;"></div>
5 </div>
6 <pre id="console"></pre>
8 <script>
9 function log(msg)
11 document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 var t = document.getElementById("test");
18 var initialTop = t.scrollTop;
20 // Scroll as far as you can.
21 t.scrollTop = 1000;
23 var newTop = t.scrollTop
25 if (initialTop == newTop)
26 log("PASS: test.scrollTop is correct.")
27 else
28 log("FAIL: test.scrollTop is incorrect. It is " + initialTop + " but should be " + newTop + ".");
29 </script>
30 </body>