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-image: radial-gradient(transparent, black); |
| 20 filter: url(#lighting); |
| 21 } |
| 22 .before { |
| 23 background-image: none; |
| 24 } |
| 25 </style> |
| 26 <div class="before box"></div> |
| 27 <svg width="0" height="0"> |
| 28 <filter id="lighting" x="-0.5" y="-0.5" width="2" height="2"> |
| 29 <feDiffuseLighting surfaceScale="200"> |
| 30 <feDistantLight azimuth="135"/> |
| 31 </feDiffuseLighting> |
| 32 <feComposite operator="in" x="50" y="50" width="100" height="100" in2="Sourc
eGraphic"/> |
| 33 </filter> |
| 34 </svg> |
OLD | NEW |