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. -->
10 <filter id=
"simple" x=
"0" y=
"0">
11 <feOffset in=
"SourceGraphic" dx=
"0" dy=
"0" />
14 <rect id=
"rect" width=
"30" y=
"10" height=
"30" fill=
"red" />
20 <use xlink:
href=
"#rect" x=
"10" />
22 <use filter=
"url(#simple)" xlink:
href=
"#rect" x=
"50" />
27 function repaintTest() {
28 document.getElementById(
"rect").setAttribute(
"fill",
"green");