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