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 -webkit-filter: drop-shadow(10px 10px 10px blue); |
23 } | 23 } |
24 </style> | 24 </style> |
25 | 25 |
26 <script src="../../fast/repaint/resources/repaint.js"></script> | 26 <script src="../../fast/repaint/resources/repaint.js"></script> |
27 <script> | 27 <script> |
28 if (window.testRunner) | 28 if (window.testRunner) |
29 testRunner.dumpAsText(true); | 29 testRunner.dumpAsTextWithPixelResults(); |
30 | 30 |
31 function repaintTest() | 31 function repaintTest() |
32 { | 32 { |
33 document.querySelector(".before").classList.remove("before"); | 33 document.querySelector(".before").classList.remove("before"); |
34 } | 34 } |
35 </script> | 35 </script> |
36 </head> | 36 </head> |
37 | 37 |
38 <body onload="runRepaintTest()"> | 38 <body onload="runRepaintTest()"> |
39 | 39 |
40 <div class="shadow"> | 40 <div class="shadow"> |
41 <div class="box"></div> | 41 <div class="box"></div> |
42 <div class="box before"></div> | 42 <div class="box before"></div> |
43 <div class="box"></div> | 43 <div class="box"></div> |
44 </div> | 44 </div> |
45 | 45 |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |