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