Rebaseline expected results added in r143389 so that they have alpha values.
[WebKit-https.git] / LayoutTests / svg / as-image / svg-container-size-after-reload.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 <script>
6 jsTestIsAsync = true;
7 description("Test for WK112651: SVG image container size should not survive reloads.");
8
9 function runTest() {
10     var image1 = document.getElementById('image1');
11     image1.src = "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><rect width='100%' height='100%' fill='green'/></svg>";
12     image1.onload = function() {
13         image1.setAttribute('width', image1.width + 50);
14         var image2 = document.getElementById('image2');
15         image2.src = image1.src;
16         image2.onload = function() {
17             shouldBe("image2.width", "100");
18             finishJSTest();
19         }
20     }
21 }
22 </script>
23 </head>
24 <body onload="runTest()">
25 <img id="image1"><img id="image2">
26 <script src="../../fast/js/resources/js-test-post.js"></script>
27 </body>
28 </html>