OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/text-based-repaint.js"></script> |
| 3 <script> |
| 4 if (window.testRunner) |
| 5 testRunner.dumpAsText(); |
| 6 |
| 7 function repaintTest() { |
| 8 var things = document.getElementsByClassName("before"); |
| 9 while (things.length) |
| 10 things[0].classList.remove("before"); |
| 11 } |
| 12 onload = runRepaintAndPixelTest; |
| 13 </script> |
| 14 <style> |
| 15 .box { |
| 16 width: 200px; |
| 17 height: 200px; |
| 18 margin: 20px; |
| 19 background-color: green; |
| 20 filter: url(#displacement); |
| 21 } |
| 22 .before { |
| 23 background-color: red; |
| 24 } |
| 25 </style> |
| 26 <div class="before box"></div> |
| 27 <svg width="0" height="0"> |
| 28 <filter id="displacement" x="-0.5" y="-0.5" width="2" height="2" |
| 29 color-interpolation-filters="sRGB"> |
| 30 <feFlood/> |
| 31 <feDisplacementMap in="SourceGraphic" scale="40"/> |
| 32 </filter> |
| 33 </svg> |
OLD | NEW |