OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 This tests verifies that shader filter is repainted using the full source im
age of the element instead of just the dirty area. | 3 This tests verifies that shader filter is repainted using the full source im
age of the element instead of just the dirty area. |
4 Also it tests that the clipping rectangle of the box is not affecting the fi
lter. | 4 Also it tests that the clipping rectangle of the box is not affecting the fi
lter. |
5 There should be one light green box on the screen. No red should be visible. | 5 There should be one light green box on the screen. No red should be visible. |
6 --> | 6 --> |
7 <html> | 7 <html> |
8 <head> | 8 <head> |
9 <script> | 9 <script> |
10 if (window.testRunner) { | 10 if (window.testRunner) { |
11 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); | 11 window.testRunner.overridePreference("WebKitCSSCustomFilterEnabled",
"1"); |
12 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); | 12 window.testRunner.overridePreference("WebKitWebGLEnabled", "1"); |
13 window.testRunner.dumpAsText(true); | 13 window.testRunner.dumpAsTextWithPixelResults(); |
14 } | 14 } |
15 function repaintTest() | 15 function repaintTest() |
16 { | 16 { |
17 document.querySelector(".before").classList.remove("before"); | 17 document.querySelector(".before").classList.remove("before"); |
18 } | 18 } |
19 </script> | 19 </script> |
20 <style> | 20 <style> |
21 .clipping_box { | 21 .clipping_box { |
22 margin: 20px; | 22 margin: 20px; |
23 width: 100px; | 23 width: 100px; |
(...skipping 27 matching lines...) Expand all Loading... |
51 <body onload="runRepaintTest()"> | 51 <body onload="runRepaintTest()"> |
52 | 52 |
53 <div class="clipping_box"> | 53 <div class="clipping_box"> |
54 <div class="shader"> | 54 <div class="shader"> |
55 <div class="empty_box"></div> | 55 <div class="empty_box"></div> |
56 <div class="box before"></div> | 56 <div class="box before"></div> |
57 </div> | 57 </div> |
58 </div> | 58 </div> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |