OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../resources/text-based-repaint.js"></script> |
| 5 <script> |
| 6 if (window.testRunner) |
| 7 testRunner.dumpAsText(); |
| 8 |
| 9 function repaintTest() |
| 10 { |
| 11 var things = document.getElementsByClassName("before"); |
| 12 while (things.length) |
| 13 things[0].classList.remove("before"); |
| 14 } |
| 15 </script> |
| 16 <style> |
| 17 .box { |
| 18 width: 200px; |
| 19 height: 200px; |
| 20 margin: 50px; |
| 21 background-color: green; |
| 22 -webkit-filter: url(#blur); |
| 23 filter: url(#blur); |
| 24 } |
| 25 .before { |
| 26 background-color: red; |
| 27 } |
| 28 </style> |
| 29 </head> |
| 30 <body onload="runRepaintAndPixelTest()"> |
| 31 <div class="box before"></div> |
| 32 <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1"> |
| 33 <defs> |
| 34 <filter id="blur"> |
| 35 <feGaussianBlur stdDeviation="20 0"/> |
| 36 </filter> |
| 37 </defs> |
| 38 </svg> |
| 39 </body> |
| 40 </html> |
OLD | NEW |