| OLD | NEW |
| 1 <!-- Based on fast/repaint/filter-invalidation-after-display.html --> |
| 1 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 2 <style> | 3 <style> |
| 3 .green { | 4 .green { |
| 4 background-color: green; | 5 background-color: green; |
| 5 } | 6 } |
| 6 .box { | 7 .box { |
| 7 width: 200px; | 8 width: 200px; |
| 8 height: 200px; | 9 height: 200px; |
| 9 position: absolute; | 10 position: absolute; |
| 10 left: 300px; | 11 left: 300px; |
| 11 } | 12 } |
| 12 .drop-shadowed { | 13 .drop-shadowed { |
| 13 -webkit-filter: drop-shadow(100px 100px 10px red); | 14 -webkit-filter: drop-shadow(100px 100px 10px red); |
| 14 } | 15 } |
| 15 </style> | 16 </style> |
| 16 <!-- | 17 <!-- |
| 17 This test checks that we correctly invalidate filters when they are removed. | 18 This test checks that we correctly invalidate filters when they are removed. |
| 18 There should be no red below. | 19 There should be no red below. |
| 19 --> | 20 --> |
| 20 <div class="green drop-shadowed box" id="box"></div> | 21 <div class="green drop-shadowed box" id="box"></div> |
| 21 <script src="resources/text-based-repaint.js"></script> | 22 <script src="resources/paint-invalidation-test.js"></script> |
| 22 <script> | 23 <script> |
| 23 function repaintTest() { | 24 window.expectedPaintInvalidationObjects = [ |
| 25 "LayoutBlockFlow (positioned) DIV id='box' class='green box'", |
| 26 "LayoutBlockFlow (positioned) DIV id='box' class='green box'", |
| 27 ]; |
| 28 function paintInvalidationTest() { |
| 24 var box = document.getElementById('box'); | 29 var box = document.getElementById('box'); |
| 25 box.classList.toggle('drop-shadowed'); | 30 box.classList.toggle('drop-shadowed'); |
| 26 } | 31 } |
| 27 window.onload = runRepaintTest; | 32 window.onload = runPaintInvalidationTest; |
| 28 </script> | 33 </script> |
| OLD | NEW |