Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / js-update-pattern-child.svg
blob2f1e200cb1adc496cbb8a3ac5ae3176833d44bc7
1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3 <svg width="450" height="450" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
5 <defs>
6 <pattern patternUnits="userSpaceOnUse" id="Pattern" x="0" y="0" width="20" height="20">
7 <rect x="5" y="5" width="10" height="10" fill="red" />
8 <rect id="rect" x="10" y="10" width="10" height="10" fill="green" />
9 </pattern>
10 </defs>
12 <script>
13 function repaintTest() {
14 document.getElementById("rect").setAttribute("x", "0");
16 </script>
18 <rect x="10" y="10" width="430" height="80" fill="url(#Pattern)" />
19 <rect x="10" y="100" width="430" height="80" fill="url(#Pattern)" />
21 </svg>