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>
6 <pre id=
"console"></pre>
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.
23 var newTop
= t
.scrollTop
25 if (initialTop
== newTop
)
26 log("PASS: test.scrollTop is correct.")
28 log("FAIL: test.scrollTop is incorrect. It is " + initialTop
+ " but should be " + newTop
+ ".");