object--auto-auto--0-px.html (1045B)
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"> 6 <head> 7 8 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=294086 --> 9 10 <title>Test: width:auto; height:auto; width="0" height="70px"</title> 11 12 <!-- 13 This testcase checks that the <object> element uses the intrinsic width and 14 height of the embedded SVG. Since the intrinsic width is zero and the 15 intrinsic height is 70px, you should see a 1px blue border around a 16 rectangle 0px wide by 70px high when viewing this file. You should not see 17 any red. 18 --> 19 20 <style type="text/css"> 21 22 html, body { 23 padding: 0; 24 border: 0; 25 margin: 0; 26 width: 100%; 27 height: 100%; 28 } 29 30 object { 31 padding: 0; 32 border: 1px solid blue; 33 margin: 50px; 34 background: red; 35 } 36 37 </style> 38 </head> 39 <body> 40 <object data="object--auto-auto--0-px.svg" type="image/svg+xml"> 41 FAIL 42 </object> 43 </body> 44 </html>