Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / lazy-attach-use.html
blob762436fba9ea929a26b7521024aed4f9105bcdb8
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 Test for crbug.com/279434: This test passes if there is a green square below.<br/>
5 <div id="container"></div>
6 <script>
7 document.getElementById('container').innerHTML =
8 '<svg width="150" height="150">' +
9 '<rect id="g" x="200" y="200" width="100" height="100"/>' +
10 '<use x="-200" y="-200" xlink:href="#g"/>' +
11 '</svg>';
12 document.getElementById("g").setAttribute("fill", "green");
13 </script>
14 </body>
15 </html>