blob: f9d2b794d4640602ec08208ae941312280663842 [file] [log] [blame]
<p>This tests that the scroll origin for boxes with -webkit-writing-mode:vertical-rl; direction:rtl; overflow:scroll is correct.</p>
<div id="test" style="-webkit-writing-mode:vertical-rl; direction:rtl; overflow:scroll; width: 200px; height: 200px">
<div style="height: 300px; width: 100px;"></div>
<pre id="console"></pre>
function log(msg)
document.getElementById('console').appendChild(document.createTextNode(msg + "\n"));
if (window.testRunner)
var t = document.getElementById("test");
var initialTop = t.scrollTop;
// Scroll as far as you can.
t.scrollTop = 1000;
var newTop = t.scrollTop
if (initialTop == newTop)
log("PASS: test.scrollTop is correct.")
log("FAIL: test.scrollTop is incorrect. It is " + initialTop + " but should be " + newTop + ".");