dynamic--object--auto-auto--pct-px.html (1016B)
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="49%" height="70px"</title> 11 12 <!-- 13 This testcase checks that the <object> element uses the intrinsic 14 height of the embedded SVG, but ignores the percentage width. Since 15 the intrinsic height is 70px, you should see a blue rectangle 300px 16 (the magic default) wide by 70px high when viewing this file. You 17 should not see 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 margin: 50px; 33 background: red; 34 } 35 36 </style> 37 </head> 38 <body> 39 <object data="object--auto-auto--pct-px.svg" type="image/svg+xml"> 40 FAIL 41 </object> 42 </body> 43 </html>