| OLD | NEW |
| 1 <!-- Based on compositing/layer-creation/compositing-reason-removed.html --> | 1 <!-- Based on compositing/layer-creation/compositing-reason-removed.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <style> | 3 <style> |
| 4 #square { | 4 #square { |
| 5 background-color: blue; | 5 background-color: blue; |
| 6 width: 30px; | 6 width: 30px; |
| 7 height: 30px; | 7 height: 30px; |
| 8 position: relative; | 8 position: relative; |
| 9 -webkit-backface-visibility: hidden; | 9 -webkit-backface-visibility: hidden; |
| 10 } | 10 } |
| 11 </style> | 11 </style> |
| 12 | 12 |
| 13 <script src="resources/paint-invalidation-test.js"></script> | 13 <script src="resources/paint-invalidation-test.js"></script> |
| 14 <script> | 14 <script> |
| 15 window.expectedPaintInvalidationObjects = [ | |
| 16 ]; | |
| 17 function paintInvalidationTest() { | 15 function paintInvalidationTest() { |
| 18 // Remove the div's only compositing reason. This should trigger a repaint. | 16 // Remove the div's only compositing reason. This should trigger a repaint. |
| 19 document.getElementById("square").style.webkitBackfaceVisibility = "visible"
; | 17 document.getElementById("square").style.webkitBackfaceVisibility = "visible"
; |
| 20 } | 18 } |
| 21 runPaintInvalidationTest(); | 19 runPaintInvalidationTest(); |
| 22 </script> | 20 </script> |
| 23 | 21 |
| 24 <div id="square"></div> | 22 <div id="square"></div> |
| OLD | NEW |