| OLD | NEW |
| 1 <!-- Based on compositing/repaint/should-not-repaint-composited-opacity.html --> | 1 <!-- Based on compositing/repaint/should-not-repaint-composited-opacity.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: green; | 8 background: green; |
| 9 opacity: 0.8; | 9 opacity: 0.8; |
| 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.opacity = 0.5; | 15 document.getElementById('composited-box').style.opacity = 0.5; |
| 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 |