| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html><head> | 2 <html><head> |
| 3 <style> | 3 <style> |
| 4 .container { | 4 .container { |
| 5 margin: 20px; | 5 margin: 20px; |
| 6 width: 300px; | 6 width: 300px; |
| 7 height: 200px; | 7 height: 200px; |
| 8 border: 1px solid black; | 8 border: 1px solid black; |
| 9 overflow: scroll; | 9 overflow: scroll; |
| 10 } | 10 } |
| 11 .horizontal-bt { | 11 .horizontal-bt { |
| 12 -webkit-writing-mode: horizontal-bt; | 12 -webkit-writing-mode: horizontal-bt; |
| 13 } | 13 } |
| 14 .offset { | 14 .offset { |
| 15 width: 100px; | 15 width: 100px; |
| 16 height: 2000px; | 16 height: 2000px; |
| 17 } | 17 } |
| 18 .target { | 18 .target { |
| 19 width: 100px; | 19 width: 100px; |
| 20 height: 100px; | 20 height: 100px; |
| 21 background-color: orange; | 21 background-color: orange; |
| 22 visibility: hidden; | |
| 23 } | 22 } |
| 24 </style> | 23 </style> |
| 25 </head> | 24 </head> |
| 26 <body> | 25 <body> |
| 27 <div class="horizontal-bt container"> | 26 <div class="horizontal-bt container"> |
| 28 <div class="offset"></div> | 27 <div class="offset"></div> |
| 29 <div class="target"></div> | 28 <div class="target"></div> |
| 30 </div> | 29 </div> |
| 31 An orange rect should be painted.<br/> | 30 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. | 31 In DumpRenderTree, there should be repaint logs of 100x100 rect. We don't ca
re how many times is the log dumpped. |
| 33 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 34 <script src="resources/text-based-repaint.js"></script> | |
| 35 <script> | 32 <script> |
| 36 repaintTest = function() { | 33 var container = document.getElementsByClassName("container")[0]; |
| 37 var target = document.getElementsByClassName("target")[0]; | 34 onload = function() { |
| 38 target.style.visibility = "visible"; | 35 container.scrollTop = 0; |
| 39 }; | 36 }; |
| 40 var container = document.getElementsByClassName("container")[0]; | |
| 41 runAfterLayoutAndPaint(function() { | |
| 42 container.scrollTop = 0; | |
| 43 runRepaintTest(); | |
| 44 }); | |
| 45 </script> | 37 </script> |
| 46 </body></html> | 38 </body></html> |
| OLD | NEW |