OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Composited overflow scrolling for RTL</title> | 4 <title>Composited overflow scrolling for RTL</title> |
5 <style> | 5 <style> |
6 .container { | 6 .container { |
7 width: 400px; | 7 width: 400px; |
8 height: 150px; | 8 height: 150px; |
9 overflow: scroll; | 9 overflow: scroll; |
10 direction: rtl; | 10 direction: rtl; |
(...skipping 17 matching lines...) Expand all Loading... |
28 .left { | 28 .left { |
29 width: 100px; | 29 width: 100px; |
30 height: 100px; | 30 height: 100px; |
31 position: absolute; | 31 position: absolute; |
32 left: 0; | 32 left: 0; |
33 background-color: blue; | 33 background-color: blue; |
34 } | 34 } |
35 </style> | 35 </style> |
36 </head> | 36 </head> |
37 <body> | 37 <body> |
38 <div style="-webkit-transform:translateZ(0);"> | 38 <div style="transform:translateZ(0);"> |
39 This test succeeds if the two blocks correctly show content scrolled to the
rightmost and leftmost respectively. | 39 This test succeeds if the two blocks correctly show content scrolled to the
rightmost and leftmost respectively. |
40 </div> | 40 </div> |
41 <div class="container"> | 41 <div class="container"> |
42 <div class="overflow"> | 42 <div class="overflow"> |
43 <div class="left"></div> | 43 <div class="left"></div> |
44 <div class="right"></div> | 44 <div class="right"></div> |
45 </div> | 45 </div> |
46 </div> | 46 </div> |
47 <div class="container" id="second"> | 47 <div class="container" id="second"> |
48 <div class="overflow"> | 48 <div class="overflow"> |
49 <div class="left"></div> | 49 <div class="left"></div> |
50 <div class="right"></div> | 50 <div class="right"></div> |
51 </div> | 51 </div> |
52 </div> | 52 </div> |
53 <script> | 53 <script> |
54 document.getElementById('second').scrollLeft = 0; | 54 document.getElementById('second').scrollLeft = 0; |
55 </script> | 55 </script> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |