Fix reload and programmatic scrolling in RTL documents
[WebKit-https.git] / LayoutTests / fast / scrolling / programmatic-document-rtl-scrollIntoView.html
1 <html dir="rtl">
2 <head>
3     <style>
4         .wide {
5             width: 2000px;
6             height: 10px;
7             background-color: silver;
8         }
9         .origin {
10             position: absolute;
11             top: 0;
12             left: 0;
13             width: 10px;
14             height: 10px;
15             background-color: blue;
16         }
17         
18         #lefty {
19             position: absolute;
20             left: -200px;
21             width: 100px;
22             height: 100px;
23             background-color: orange;
24         }
25     </style>
26     <script>
27     if (window.testRunner)
28         testRunner.dumpAsText();
29
30     function runTest()
31     {
32         document.getElementById('lefty').scrollIntoView();
33         document.getElementById('result').textContent = 'document.scrollingElement.scrollLeft = ' + document.scrollingElement.scrollLeft;
34     }
35     
36     window.addEventListener('load', runTest, false);
37     </script>
38 </head>
39 <body>
40     <div class="wide"></div>
41     <div class="origin"></div>
42     <div id="lefty"></div>
43     <div id="result">
44     </div>
45 </body>
46 </html>