dynamic--object-svg-unloaded.xhtml (1074B)
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> 7 8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 --> 9 10 <title>Test: object should resize when SVG is unloaded</title> 11 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 --> 18 19 <style type="text/css"> 20 21 html, body { 22 padding: 0; 23 border: 0; 24 margin: 0; 25 width: 100%; 26 height: 100%; 27 background: lime; 28 } 29 30 object { 31 background: red; 32 position: absolute; 33 left: 0; 34 top: 0; 35 } 36 37 </style> 38 </head> 39 <body> 40 41 <div style="width:300px; height:150px; background:red;"></div> 42 43 <object data="dynamic--object-svg-unloaded-a.svg" type="image/svg+xml"> 44 FAIL 45 </object> 46 47 </body> 48 </html>