c43-rpl-ibx-000

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    img { display: inline; }
12    span { color: blue; font: 15px/1 Ahem; vertical-align: top; background: red; }
13    .b img, .b span { font-size: 4em/1; height: 1em; }
14   </style>
15   <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'">
16   <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">
17  </head>
18  <body>
19   <p>There should be no red anywhere.</p>
20   <p class="a">
21    There should be two identical squares at the end of this line:
22    <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced.">
23    <span>X</span>
24   </p>
25   <p class="b">
26    There should be two identical squares at the end of this line:
27    <img src="support/swatch-blue.png" alt="FAIL: Replaced content did not get replaced.">
28    <span>X</span>
29   </p>
30  </body>
31 </html>