c42-ibx-pad-000

Inline 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: Inline Elements</title>
 5   <meta name="flags" content="ahem image">
 6   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#inline-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 { font: 10px/240% Ahem; color: black; width: 200px; margin: 0 0 0 10px; }
12    span { border: solid 10px blue; padding: 2px 20px 2px 10px; margin: 40px 30px 0 40px; }
13    td { padding: 0; border: 2px solid black; }
14    img { display: block; }
15    .control { background: red; color: yellow; }
16   </style>
17   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting" title="9.4.2 Inline formatting context">
18  </head>
19  <body>
20   <p>The two diagrams below should be identical to the pixel with no red present.</p>
21   <table>
22    <tr>
23     <td>
24      <div>
25       1 2 3 4 5 6 7 8 9 0
26       1 2 3 <span> 7 8 9 0
27       1 2 3 4 5 6 7 8 9 0
28       1 2 3 4 </span> 8 9 0
29       1 2 3 4 5 6 7 8 9 0
30      </div>
31     </td>
32     <td class="control">
33      <img src="support/css1test42a.png" alt="FAIL: Images required for this test.">
34     </td>
35    </tr>
36   </table>
37  </body>
38 </html>