OLD | NEW |
1 <!-- Based on compositing/repaint/clipping-should-not-repaint-composited-descend
ants.html --> | 1 <!-- Based on compositing/repaint/clipping-should-not-repaint-composited-descend
ants.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <style> | 3 <style> |
4 .spacer { | 4 .spacer { |
5 position: relative; | 5 position: relative; |
6 width: 300px; | 6 width: 300px; |
7 height: 300px; | 7 height: 300px; |
8 } | 8 } |
9 | 9 |
10 .clipping-container { | 10 .clipping-container { |
(...skipping 24 matching lines...) Expand all Loading... |
35 width: 100%; | 35 width: 100%; |
36 clip: rect(100px, 200px, 200px, 100px); | 36 clip: rect(100px, 200px, 200px, 100px); |
37 } | 37 } |
38 </style> | 38 </style> |
39 <script src="resources/paint-invalidation-test.js"></script> | 39 <script src="resources/paint-invalidation-test.js"></script> |
40 <script> | 40 <script> |
41 var alt1 = document.getElementById('alt1'); | 41 var alt1 = document.getElementById('alt1'); |
42 var alt2 = document.getElementById('alt2'); | 42 var alt2 = document.getElementById('alt2'); |
43 alt2.disabled = true; | 43 alt2.disabled = true; |
44 | 44 |
45 window.expectedPaintInvalidationObjects = [ | |
46 ]; | |
47 function paintInvalidationTest() { | 45 function paintInvalidationTest() { |
48 alt2.disabled = false; | 46 alt2.disabled = false; |
49 alt1.disabled = true; | 47 alt1.disabled = true; |
50 } | 48 } |
51 | 49 |
52 runPaintInvalidationTest(); | 50 runPaintInvalidationTest(); |
53 </script> | 51 </script> |
54 | 52 |
55 <div class="spacer"> | 53 <div class="spacer"> |
56 <div class="clipping-container"> | 54 <div class="clipping-container"> |
57 <div class="clipped-composited-child"></div> | 55 <div class="clipped-composited-child"></div> |
58 </div> | 56 </div> |
59 </div> | 57 </div> |
60 <div class="spacer"> | 58 <div class="spacer"> |
61 <div class="clipping-container with-initial-clipping"> | 59 <div class="clipping-container with-initial-clipping"> |
62 <div class="clipped-composited-child"></div> | 60 <div class="clipped-composited-child"></div> |
63 </div> | 61 </div> |
64 </div> | 62 </div> |
OLD | NEW |