OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 This tests verifies that blur is repainted using the full source image of th
e element instead of just the dirty area. | 3 This tests verifies that blur is repainted using the full source image of th
e element instead of just the dirty area. |
4 Also it tests that the clipping rectangle of the box is not affecting the sh
adow. | 4 Also it tests that the clipping rectangle of the box is not affecting the sh
adow. |
5 There should be two boxes on the screen: one blue and one green of same size
. No red should be visible. | 5 There should be two boxes on the screen: one blue and one green of same size
. No red should be visible. |
6 --> | 6 --> |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
9 <style> | 9 <style> |
10 .clipping_box { | 10 .clipping_box { |
(...skipping 19 matching lines...) Expand all Loading... |
30 } | 30 } |
31 | 31 |
32 .blur { | 32 .blur { |
33 -webkit-filter: drop-shadow(0px -100px 0px blue); | 33 -webkit-filter: drop-shadow(0px -100px 0px blue); |
34 } | 34 } |
35 </style> | 35 </style> |
36 | 36 |
37 <script src="../../fast/repaint/resources/repaint.js"></script> | 37 <script src="../../fast/repaint/resources/repaint.js"></script> |
38 <script> | 38 <script> |
39 if (window.testRunner) | 39 if (window.testRunner) |
40 testRunner.dumpAsText(true); | 40 testRunner.dumpAsTextWithPixelResults(); |
41 | 41 |
42 function repaintTest() | 42 function repaintTest() |
43 { | 43 { |
44 document.querySelector(".before").classList.remove("before"); | 44 document.querySelector(".before").classList.remove("before"); |
45 } | 45 } |
46 </script> | 46 </script> |
47 </head> | 47 </head> |
48 | 48 |
49 <body onload="runRepaintTest()"> | 49 <body onload="runRepaintTest()"> |
50 | 50 |
51 <div class="clipping_box"> | 51 <div class="clipping_box"> |
52 <div class="blur"> | 52 <div class="blur"> |
53 <div class="empty_box"></div> | 53 <div class="empty_box"></div> |
54 <div class="box before"></div> | 54 <div class="box before"></div> |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
OLD | NEW |