inlines-014

Inline box model: space taken by images in cells

WeasyPrint

This browser

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 box model: space taken by images in cells</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/014.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes">
 8   <met name="flags" content="image"></met>
 9   <style type="text/css">
10    div { background: red; height: 64px; width: 128px; }
11    table { background: green; width: 100%; padding: 0; border: 0; border-spacing: 0; margin: 0; }
12    td { padding: 0; border: 0; font-size: 64px; }
13   </style>
14  </head>
15  <body>
16   <p>There should be no red below.</p>
17   <div>
18    <table>
19     <tr>
20      <td>
21       <img src="support/1x1-white.png" alt="(image test failed)"> <!-- this should generate a line box with the height of the cell's line-height -->
22      </td>
23     </tr>
24    </table>
25   </div>
26  </body>
27 </html>