OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <div id="scroller" style="writing-mode: vertical-rl; width: 400px; height: 400px
; overflow-x: auto; will-change: transform"> |
| 4 <div id="target" style="width: 10000px; height:200px; background: red"></div> |
| 5 </div> |
| 6 <script> |
| 7 // Tests that flipped-blocks writing mode paint invalidation and culling works c
orrectly for a composited scroller. |
| 8 // The result should be a green rectangle across the screen, and a scrollbar mov
ed all the way to the left. |
| 9 onload = runRepaintAndPixelTest; |
| 10 function repaintTest() { |
| 11 target.style.background = "green"; |
| 12 scroller.scrollLeft = 0; |
| 13 } |
| 14 </script> |
OLD | NEW |