Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / repaint-on-image-bounds-change.svg
blobf07b1aceeaa5ba046936f72d0506d9da874f3aa6
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3 <svg 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 <script type="text/ecmascript">
6 <![CDATA[
7 // This is used to test that we correctly invalidate the original image bounds when the
8 // image attributes are changed. A correct result will be a 100x100px green square
9 function repaintTest() {
10 var target = document.getElementById("target");
11 target.setAttributeNS(null,"width", 0);
12 target.setAttributeNS(null,"height", 0);
13 target.setAttributeNS(null,"x", 50);
14 target.setAttributeNS(null,"y", 50);
16 ]]>
17 </script>
18 <rect x="0" y="0" width="100" height="100" fill="green" stroke="none"/>
19 <image xlink:href="../../css2.1/support/swatch-red.png" id="target" x="0" y="0" width="100" height="100" />
20 </svg>