object--auto-auto--pct-px.html (996B)
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 width and 14 height of the embedded SVG. Since the intrinsic width is 49% and the 15 intrinsic height is 70px, you should see a blue rectangle 49% wide by 70px 16 high when viewing this file. You should not see any red. 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 } 28 29 object { 30 padding: 0; 31 margin: 50px; 32 background: red; 33 } 34 35 </style> 36 </head> 37 <body> 38 <object data="object--auto-auto--pct-px.svg" type="image/svg+xml"> 39 FAIL 40 </object> 41 </body> 42 </html>