inlines-010

CSS Inline Box Model: Behaviour near cells (normal line height)

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: CSS Inline Box Model: Behaviour near cells (normal line height)</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/010.xml" type="application/xhtml+xml">
 8   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/010.html" type="text/html">
 9   <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height">
10   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-formatting">
11   <meta name="flags" content="ahem image">
12   <style type="text/css">
13    div, table, tr, td, img { margin: 0; border: 0; padding: 0; border-spacing: 0; }
14    .test > * { border: solid thick blue; font: 20px Ahem; float: left; color: gray;
15                margin: 0.2em; height: auto; width: 3em; text-align: center; }
16   </style>
17  </head>
18  <body>
19   <p>Test passes if the following four boxes are the <strong>same size</strong>.</p>
20   <div class="test">
21    <div>ÉÉÉ</div>
22    <table><tr><td>ÉÉÉ</td></tr></table>
23    <table><tr><td><img class="img" src="support/1x1-navy.png" width="60" height="16" alt="(image test failed)"></td></tr></table>
24    <table><tr><td><img src="404" alt="ÉÉÉ" width="60" height="16"></td></tr></table>
25   </div>
26  </body>
27 </html>