OLD | NEW |
1 <!-- Based on compositing/repaint/should-not-repaint-composited-z-index.html --> | 1 <!-- Based on compositing/repaint/should-not-repaint-composited-z-index.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <style> | 3 <style> |
4 #composited-box { | 4 #composited-box { |
5 backface-visibility: hidden; | 5 backface-visibility: hidden; |
6 width: 100px; | 6 width: 100px; |
7 height: 100px; | 7 height: 100px; |
8 background-color: green; | 8 background-color: green; |
9 z-index: 1; | 9 z-index: 1; |
10 } | 10 } |
11 </style> | 11 </style> |
12 <script src="resources/paint-invalidation-test.js"></script> | 12 <script src="resources/paint-invalidation-test.js"></script> |
13 <script> | 13 <script> |
14 window.expectedPaintInvalidationObjects = [ | |
15 ]; | |
16 function paintInvalidationTest() { | 14 function paintInvalidationTest() { |
17 document.getElementById('composited-box').style.zIndex = 2; | 15 document.getElementById('composited-box').style.zIndex = 2; |
18 } | 16 } |
19 window.onload = runPaintInvalidationTest; | 17 window.onload = runPaintInvalidationTest; |
20 </script> | 18 </script> |
21 <div id="composited-box"></div> | 19 <div id="composited-box"></div> |
OLD | NEW |