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