Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / relative-sized-deep-shadow-tree-content.xhtml
blobc088d2adedcbf638e759ea8ea2423ff8452afafc
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 </head>
5 <body onload="runRepaintAndPixelTest()">
6 <p>The svg area contained in the div element (red box), should contain one blue rectangle from (50%,50%)-(100%,100%), especially after resizing the content box to a different size</p>
7 <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid red;">
8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
9 <defs>
10 <rect id="targetRect" y="25%" width="50%" height="50%" fill="blue"/>
11 <use id="targetUse" x="25%" xlink:href="#targetRect"/>
12 </defs>
13 <use x="25%" y="25%" xlink:href="#targetUse"/>
14 </svg>
15 </div>
16 <script>
17 function repaintTest() {
18 document.getElementById("contentBox").style.setProperty("width", "400px");
20 </script>
21 </body>
22 </html>