OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 #box { | 3 #box { |
4 width: 100px; | 4 width: 100px; |
5 height: 100px; | 5 height: 100px; |
6 background-color: green; | 6 background-color: green; |
7 -webkit-filter: drop-shadow(300px 100px 10px green); | 7 -webkit-filter: drop-shadow(300px 100px 10px green); |
8 } | 8 } |
9 #positioned { | 9 #positioned { |
10 position: absolute; | 10 position: absolute; |
11 top: 400px; | 11 top: 400px; |
12 left: 400px; | 12 left: 400px; |
13 width: 50px; | 13 width: 50px; |
14 height: 50px; | 14 height: 50px; |
15 background-color: blue; | 15 background-color: blue; |
16 } | 16 } |
17 </style> | 17 </style> |
18 <!-- | 18 <!-- |
19 Tests paint invalidation of positioned object when its ancestor changes filter. | 19 Tests paint invalidation of positioned object when its ancestor changes filter. |
20 Passes if the all drop shadows change to green. | 20 Passes if the all drop shadows change to green. |
21 --> | 21 --> |
22 <div id="box"> | 22 <div id="box"> |
23 <div id="positioned"></div> | 23 <div id="positioned"></div> |
24 </div> | 24 </div> |
OLD | NEW |