blob: 78660550a5dd3b266be04ed8fd99702f0d980a93 [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
style="width:300px;height:400px" onload="runRepaintTest()">
<script xlink:href="../../fast/repaint/resources/repaint.js"/>
<!-- This tests filters failing to refresh after the initial rendering
(https://bugs.webkit.org/show_bug.cgi?id=53088).
There should be two green squares in the output. -->
<defs>
<filter id="simple" x="0" y="0">
<feOffset in="SourceGraphic" dx="0" dy="0" />
</filter>
<rect id="rect" width="30" y="10" height="30" fill="red" />
</defs>
<g>
<use xlink:href="#rect" x="10" />
<use filter="url(#simple)" xlink:href="#rect" x="50" />
</g>
<script><![CDATA[
function repaintTest() {
document.getElementById("rect").setAttribute("fill", "green");
}
]]></script>
</svg>