replaced-intrinsic-005

Auto Intrinsic Sizes: Intrinsic Width Only and Auto Height

WeasyPrint

This browser

Flags
svg
Assertion
A replaced element with an intrinsic height only and a specified width is drawn at the specified width and intrinsic height.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: Auto Intrinsic Sizes: Intrinsic Width Only and Auto Height</title>
 5   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width">
 7   <meta name="flags" content="svg">
 8   <meta name="assert" content="A replaced element with an intrinsic height only     and a specified width is drawn at the specified width and intrinsic height.">
 9   <style type="text/css">
10     object {
11       border: solid 20px red;
12       background: green;
13     }
14     .control {
15       position: absolute;
16       border: solid 20px green;
17       height: 150px;
18       width: 60px;
19     }
20   </style>
21  </head>
22  <body>
23   <p>There must be a green box below and no red.</p>
24 
25     <div class="control"></div>
26     <div><object data="support/replaced-intrinsic-005.svg" type="image/svg+xml">FAIL: SVG support required</object></div>
27 
28  </body>
29 </html>