| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 This tests verifies that filters work even on composited layers that fallbac
k to rendering in software. | 3 This tests verifies that filters work even on composited layers that fallbac
k to rendering in software. |
| 4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if
the filter is the last one in the filter chain. | 4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if
the filter is the last one in the filter chain. |
| 5 You should see three green rectangles slightly rotated and blurred. There sh
ould be no red. | 5 You should see three green rectangles slightly rotated and blurred. There sh
ould be no red. |
| 6 --> | 6 --> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <style> | 9 <style> |
| 10 .box { | 10 .box { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 margin: 50px; | 27 margin: 50px; |
| 28 -webkit-filter: drop-shadow(0px 0px 1px blue) blur(5px); | 28 -webkit-filter: drop-shadow(0px 0px 1px blue) blur(5px); |
| 29 width: 0px; | 29 width: 0px; |
| 30 height: 0px; | 30 height: 0px; |
| 31 } | 31 } |
| 32 </style> | 32 </style> |
| 33 | 33 |
| 34 <script src="../../fast/repaint/resources/repaint.js"></script> | 34 <script src="../../fast/repaint/resources/repaint.js"></script> |
| 35 <script> | 35 <script> |
| 36 if (window.testRunner) | 36 if (window.testRunner) |
| 37 testRunner.dumpAsText(true); | 37 testRunner.dumpAsTextWithPixelResults(); |
| 38 | 38 |
| 39 function repaintTest() | 39 function repaintTest() |
| 40 { | 40 { |
| 41 document.querySelector(".before").classList.remove("before"); | 41 document.querySelector(".before").classList.remove("before"); |
| 42 } | 42 } |
| 43 </script> | 43 </script> |
| 44 </head> | 44 </head> |
| 45 | 45 |
| 46 <body onload="runRepaintTest()"> | 46 <body onload="runRepaintTest()"> |
| 47 | 47 |
| 48 <div class="blur"> | 48 <div class="blur"> |
| 49 <div class="box"></div> | 49 <div class="box"></div> |
| 50 <div class="box before"></div> | 50 <div class="box before"></div> |
| 51 <div class="box"></div> | 51 <div class="box"></div> |
| 52 </div> | 52 </div> |
| 53 | 53 |
| 54 </body> | 54 </body> |
| 55 </html> | 55 </html> |
| OLD | NEW |