| <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> |
| document.getElementById('console').appendChild(document.createTextNode(msg + "\n")); |
| var t = document.getElementById("test"); |
| var initialTop = t.scrollTop; |
| // Scroll as far as you can. |
| if (initialTop == newTop) |
| log("PASS: test.scrollTop is correct.") |
| log("FAIL: test.scrollTop is incorrect. It is " + initialTop + " but should be " + newTop + "."); |