Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-disappears-after-style-update.svg
blobdd73f56a802c6d1788a9deb3b55055075c5bcb57
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2 style="width:300px;height:400px" onload="runRepaintAndPixelTest()">
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
5 <!-- This tests filters failing to refresh after the initial rendering
6 (https://bugs.webkit.org/show_bug.cgi?id=53088).
7 There should be two green squares in the output. -->
9 <defs>
10 <filter id="simple" x="0" y="0">
11 <feOffset in="SourceGraphic" dx="0" dy="0" />
12 </filter>
14 <rect id="rect" width="30" y="10" height="30" fill="red" />
16 </defs>
18 <g>
20 <use xlink:href="#rect" x="10" />
22 <use filter="url(#simple)" xlink:href="#rect" x="50" />
24 </g>
26 <script><![CDATA[
27 function repaintTest() {
28 document.getElementById("rect").setAttribute("fill", "green");
30 ]]></script>
32 </svg>