1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 <script src=
"../../fast/repaint/resources/text-based-repaint.js"></script>
5 <body onload=
"runRepaintAndPixelTest()">
6 <p>The svg area contained in the div element (red box), should fill out the whole area (two green rectangles, first: (
0,
0)-(
50%,
50%), second: (
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%">
10 <symbol id=
"targetSymbol" viewBox=
"0 0 200 200" width=
"50%" height=
"50%">
11 <rect x=
"50%" y=
"50%" width=
"50%" height=
"50%" fill=
"green"/>
12 <rect width=
"100" height=
"100" fill=
"green"/>
15 <use xlink:
href=
"#targetSymbol"/>
19 function repaintTest() {
20 document
.getElementById("contentBox").style
.setProperty("width", "400px");