OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> |
| 4 function repaintTest() { |
| 5 scroller.style.background = 'green'; |
| 6 } |
| 7 onload = runRepaintAndPixelTest; |
| 8 </script> |
| 9 <style> |
| 10 #scroller { |
| 11 background: red; |
| 12 contain: paint; |
| 13 border: 10px solid rgba(0, 0, 0, 0.5); |
| 14 overflow: scroll; |
| 15 width: 200px; |
| 16 height: 200px; |
| 17 } |
| 18 |
| 19 .spacer { |
| 20 height: 300px; |
| 21 } |
| 22 </style> |
| 23 <!-- #scroller has a solid color border-box background which will be painted |
| 24 into both the scrolling contents and graphics layers. Both of these should |
| 25 be invalidated and repainted when the color changes to green. The border |
| 26 should appear dark green. --> |
| 27 <div id="scroller"> |
| 28 <div class="spacer"></div> |
| 29 </div> |
OLD | NEW |