replaced-intrinsic-002.xht (1549B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> 3 <head> 4 <title>CSS Test: Replaced inline elements (using <object>) and SVG intrinsic widths (negative test equivalent of 001)</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-11-02 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/svg/002.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width" /> 9 <link rel="match" href="replaced-intrinsic-002-ref.xht" /> 10 11 <meta name="flags" content="svg"/> 12 <style type="text/css"> 13 html { width: 150px; padding: 0; margin: 8px; position: relative; } 14 body { padding: 0; margin: 0; } 15 p { font: 16px/20px serif; padding: 0; margin: 0; } 16 object { width: auto; height: auto; } /* intrinsic size is 100%x100%, which is equivalent to width:100% height:auto (since height:auto on parent) */ 17 div { position: absolute; top: 20px; left: 0; height: 150px; width: 150px; background: green; } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if there is a filled green square and no red. <object data="support/replaced-intrinsic-002.svg" type="image/svg+xml"> FAIL (SVG not supported) </object> </p> 22 <div></div> 23 </body> 24 </html>