OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 This tests verifies that shadow is repainted using the full source image of
the element instead of just the dirty area. | 3 This tests verifies that shadow is repainted using the full source image of
the element instead of just the dirty area. |
4 There should be 3 green boxes of same size with blue shadow on the lower rig
ht corner. Check that the shadow is not interrupted. | 4 There should be 3 green boxes of same size with blue shadow on the lower rig
ht corner. Check that the shadow is not interrupted. |
5 --> | 5 --> |
6 <html> | 6 <html> |
7 <head> | 7 <head> |
8 <style> | 8 <style> |
9 .box { | 9 .box { |
10 margin: 10px; | 10 margin: 10px; |
11 height: 50px; | 11 height: 50px; |
12 width: 50px; | 12 width: 50px; |
13 background-color: green; | 13 background-color: green; |
14 } | 14 } |
15 | 15 |
16 .before { | 16 .before { |
17 background-color: red; | 17 background-color: red; |
18 } | 18 } |
19 | 19 |
20 .shadow { | 20 .shadow { |
21 margin: 50px; | 21 margin: 50px; |
22 -webkit-filter: drop-shadow(10px 10px 10px blue); | 22 filter: drop-shadow(10px 10px 10px blue); |
23 } | 23 } |
24 </style> | 24 </style> |
25 | 25 |
26 <script src="../../resources/run-after-layout-and-paint.js"></script> | 26 <script src="../../resources/run-after-layout-and-paint.js"></script> |
27 <script> | 27 <script> |
28 if (window.testRunner) { | 28 if (window.testRunner) { |
29 testRunner.dumpAsTextWithPixelResults(); | 29 testRunner.dumpAsTextWithPixelResults(); |
30 testRunner.waitUntilDone(); | 30 testRunner.waitUntilDone(); |
31 } | 31 } |
32 | 32 |
(...skipping 11 matching lines...) Expand all Loading... |
44 <body onload="repaintTest()"> | 44 <body onload="repaintTest()"> |
45 | 45 |
46 <div class="shadow"> | 46 <div class="shadow"> |
47 <div class="box"></div> | 47 <div class="box"></div> |
48 <div class="box before"></div> | 48 <div class="box before"></div> |
49 <div class="box"></div> | 49 <div class="box"></div> |
50 </div> | 50 </div> |
51 | 51 |
52 </body> | 52 </body> |
53 </html> | 53 </html> |
OLD | NEW |