replaced-intrinsic-004

Auto Intrinsic Sizes: Intrinsic Height Only and Specified Width

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 Height Only and Specified Width</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-height">
 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       width: 60px;
14     }
15     .control {
16       position: absolute;
17       border: solid 20px green;
18       height: 60px;
19       width: 60px;
20     }
21   </style>
22  </head>
23  <body>
24   <p>There must be a green box below and no red.</p>
25 
26     <div class="control"></div>
27     <div class="container">
28       <object data="support/replaced-intrinsic-004.svg" type="image/svg+xml">FAIL: SVG support required</object>
29     </div>
30 
31  </body>
32 </html>