OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html><head> | |
3 <style> | |
4 .container { | |
5 margin: 20px; | |
6 width: 300px; | |
7 height: 200px; | |
8 border: 1px solid black; | |
9 overflow: scroll; | |
10 } | |
11 .vertical-rl { | |
12 -webkit-writing-mode: vertical-rl; | |
13 } | |
14 .offset { | |
15 width: 2000px; | |
16 height: 100px; | |
17 } | |
18 .target { | |
19 width: 100px; | |
20 height: 100px; | |
21 background-color: orange; | |
22 } | |
23 </style> | |
24 </head> | |
25 <body> | |
26 <div class="container"> | |
27 <div class="vertical-rl"> | |
28 <div class="target"></div> | |
29 <div class="offset"></div> | |
30 </div></div> | |
31 An orange rect should be painted.<br/> | |
32 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca
re how many times is the log dumpped. | |
33 <script> | |
34 var container = document.getElementsByClassName("container")[0]; | |
35 onload = function() { | |
36 container.scrollLeft = 3000; | |
37 }; | |
38 </script> | |
39 </body></html> | |
OLD | NEW |