4 This test passes if there are three green squares below:
<br>
5 <svg width=
"300" height=
"300">
7 <symbol id=
"symbol" width=
"100">
8 <rect width=
"100%" height=
"100%" fill=
"green"/>
11 <svg x=
"0" y=
"0" width=
"100" height=
"100">
12 <use id=
"use1" xlink:
href=
"#symbol"/>
14 <use id=
"use2" xlink:
href=
"#symbol" x=
"100" y=
"100" width=
"10" height=
"100"/>
15 <use id=
"use3" xlink:
href=
"#symbol" x=
"200" y=
"200" width=
"100" height=
"10"/>
19 // Wait until first layout is finished.
20 window
.requestAnimationFrame(function() {
21 document
.getElementById('use2').removeAttribute('width');
22 document
.getElementById('use3').setAttribute('height', '100');