OLD | NEW |
1 <!-- Based on compositing/repaint/should-not-repaint-composited-filter.html --> | 1 <!-- Based on compositing/repaint/should-not-repaint-composited-filter.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 -webkit-filter: invert(70%); | 9 -webkit-filter: invert(70%); |
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 = [ | 14 if (window.testRunner) |
15 ]; | 15 testRunner.dumpAsText(); |
16 function paintInvalidationTest() { | 16 function paintInvalidationTest() { |
17 document.getElementById('composited-box').style.webkitFilter = 'invert(100%)
'; | 17 document.getElementById('composited-box').style.webkitFilter = 'invert(100%)
'; |
18 } | 18 } |
19 window.onload = runPaintInvalidationTest; | 19 window.onload = runPaintInvalidationTest; |
20 </script> | 20 </script> |
21 <div id="composited-box"></div> | 21 <div id="composited-box"></div> |
OLD | NEW |