| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This tests verifies that filter shader is repainted using the full source im
age of the element instead of just the dirty area. | 3 This tests verifies that filter shader is repainted using the full source im
age of the element instead of just the dirty area. |
| 4 Also it tests that the clipping or the transform rectangle of the box is not
affecting the filter. | 4 Also it tests that the clipping or the transform rectangle of the box is not
affecting the filter. |
| 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: 100px; | 22 margin: 100px; |
| 23 width: 100px; | 23 width: 100px; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 <body onload="runRepaintTest()"> | 53 <body onload="runRepaintTest()"> |
| 54 | 54 |
| 55 <div class="clipping_box"> | 55 <div class="clipping_box"> |
| 56 <div class="shader"> | 56 <div class="shader"> |
| 57 <div class="empty_box"></div> | 57 <div class="empty_box"></div> |
| 58 <div class="box before"></div> | 58 <div class="box before"></div> |
| 59 </div> | 59 </div> |
| 60 </div> | 60 </div> |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |