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(#composite); |
| 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="composite" x="-0.5" y="-0.5" width="2" height="2"> |
| 29 <feFlood x="100" y="100" width="200" height="200" flood-color="white"/> |
| 30 <feComposite operator="arithmetic" k1="1" in="SourceGraphic"/> |
| 31 </filter> |
| 32 </svg> |
OLD | NEW |