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