object--auto-auto--px-0.html (1012B)
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="70px" height="0"</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 70px and the 15 intrinsic height is zero, you should see a 1px blue border around a 16 rectangle 70px wide by 0px 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 } 27 28 object { 29 padding: 0; 30 border: 1px solid blue; 31 margin: 50px; 32 background: red; 33 } 34 35 </style> 36 </head> 37 <body> 38 <object data="object--auto-auto--px-0.svg" type="image/svg+xml"> 39 FAIL 40 </object> 41 </body> 42 </html>