OLD | NEW |
1 <!-- Based on compositing/squashing/repaint-via-layout-offset.html --> | 1 <!-- Based on compositing/squashing/repaint-via-layout-offset.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <style> | 4 <style> |
5 #container { | 5 #container { |
6 position: absolute; | 6 position: absolute; |
7 z-index: 0; | 7 z-index: 0; |
8 left: 50px; | 8 left: 50px; |
9 top: 50px; | 9 top: 50px; |
10 } | 10 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 height: 50px; | 21 height: 50px; |
22 background-color: green; | 22 background-color: green; |
23 } | 23 } |
24 </style> | 24 </style> |
25 <div style="width:200px; height:200px; transform: translateZ(0px); background-co
lor: lightblue"></div> | 25 <div style="width:200px; height:200px; transform: translateZ(0px); background-co
lor: lightblue"></div> |
26 <div id="container"> | 26 <div id="container"> |
27 <span class="child"></span> | 27 <span class="child"></span> |
28 <span class="child"></span> | 28 <span class="child"></span> |
29 </div> | 29 </div> |
30 <script> | 30 <script> |
31 window.expectedPaintInvalidationObjects = [ | |
32 "LayoutBlockFlow (positioned) SPAN class='child embiggen'", | |
33 ]; | |
34 function paintInvalidationTest() { | 31 function paintInvalidationTest() { |
35 document.querySelectorAll('.child')[1].classList.add('embiggen'); | 32 document.querySelectorAll('.child')[1].classList.add('embiggen'); |
36 } | 33 } |
37 runPaintInvalidationTest(); | 34 runPaintInvalidationTest(); |
38 </script> | 35 </script> |
OLD | NEW |