OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
Stephen White
2016/09/20 19:46:38
Thanks for adding these. Shouldn't they also have
fs
2016/09/20 21:50:25
(See below, should be there now.)
| |
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="red"/> | |
30 <feComposite operator="in" in="SourceGraphic"/> | |
31 </filter> | |
32 </svg> | |
OLD | NEW |