Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
6 <head>
8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 -->
10 <title>Test: object should resize when SVG is unloaded</title>
12 <!--
13 This testcase checks that HTML <object> will resize correctly if it depends
14 on the intrinsic size of some embedded SVG, and then the SVG is replaced by
15 some other content (perhaps as a result of a link in the SVG being
16 clicked).
17 -->
19 <style type="text/css">
21 html, body {
22 padding: 0;
23 border: 0;
24 margin: 0;
25 width: 100%;
26 height: 100%;
27 background: lime;
28 }
30 object {
31 background: red;
32 position: absolute;
33 left: 0;
34 top: 0;
35 }
37 </style>
38 </head>
39 <body>
41 <div style="width:300px; height:150px; background:red;"></div>
43 <object data="dynamic--object-svg-unloaded-a.svg" type="image/svg+xml">
44 FAIL
45 </object>
47 </body>
48 </html>