| 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 .horizontal-bt { | |
| 12 -webkit-writing-mode: horizontal-bt; | |
| 13 } | |
| 14 .offset { | |
| 15 width: 100px; | |
| 16 height: 2000px; | |
| 17 } | |
| 18 .target { | |
| 19 width: 100px; | |
| 20 height: 100px; | |
| 21 background-color: orange; | |
| 22 } | |
| 23 </style> | |
| 24 </head> | |
| 25 <body> | |
| 26 <div class="horizontal-bt"> | |
| 27 <div class="container"> | |
| 28 <div class="offset"></div> | |
| 29 <div class="target"></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.scrollTop = 0; | |
| 37 }; | |
| 38 </script> | |
| 39 </body></html> | |
| OLD | NEW |