Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / vertical-scrollbar-in-rtl-doesnt-fire-onscroll.html
blob36d5e26c117e700d638e384839283998e03d9b39
1 <!DOCTYPE html>
2 <html dir=rtl style="-webkit-writing-mode:vertical-lr">
3 <head>
4 <script language="javascript">
5 function log(str)
7 var li = document.createElement("li");
8 li.appendChild(document.createTextNode(str));
9 var console = document.getElementById("console");
10 console.appendChild(li);
13 onload = function()
15 if (window.testRunner)
16 testRunner.dumpAsText();
19 document.onscroll=function(){log("FAIL - scroll event received!");}
20 </script>
21 </head>
22 <body>
23 <div dir=ltr>
24 <p>This tests that when a page with an RTL overflow is initially loaded, no scroll event is sent.</p>
25 <p>This test has passed if the text "FAIL - scroll event received!" does not appear below.</p>
26 </div>
27 <div id="div" style="whitespace:nowrap; width: 1000px; height: 4000px; border: 1px solid red;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</div>
28 <ul id="console"></ul>
29 </body>
30 </html>