c43-rpl-bbx-002

Replaced Elements

WeasyPrint

This browser

Flags
ahem, image

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: Replaced Elements</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#replaced-elements">
 7   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 8   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 9   <style type="text/css">
10    p { color: navy; }
11    div { margin: 1em; }
12    img { display: block; margin-bottom: 5px; }
13    span { color: blue; font: 15px/1 Ahem; vertical-align: top; background: red; display: block; width: 1em; }
14    .b img, .b span { font-size: 4em/1; height: 1em; }
15   </style>
16   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#min-max-widths" title="10.4 Minimum and maximum widths: 'min-width' and 'max-width'">
17   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height" title="10.6.2 Inline replaced elements, block-level replaced elements in normal flow, 'inline-block' replaced elements in normal flow and floating replaced elements">
18  </head>
19  <body>
20   <p> There should be no red anywhere. </p>
21   <p> There should be two identical squares after this line: </p>
22   <div class="a">
23    <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced.">
24    <span>X</span>
25   </div>
26   <p> There should be two identical squares after this line: </p>
27   <div class="b">
28    <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced.">
29    <span>X</span>
30   </div>
31  </body>
32 </html>