inlines-007

CSS Inline Box Model: Behaviour near 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: CSS Inline Box Model: Behaviour near 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/007.xml" type="application/xhtml+xml">
 7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/007.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes">
 9   <style type="text/css">
10    div, table, tr, td { margin: 0; border: 0; padding: 0; border-spacing: 0; line-height: 1; }
11    span { font-size: 0.2em; }
12    table { background: green; color: white; width: 5em; }
13    .test { height: 1em; background: red; width: 5em; }
14    .wrapper { font-size: 5em; }
15   </style>
16  </head>
17  <body>
18   <p>Below this line there should be no red.</p>
19   <div class="wrapper">
20    <div class="test"><table><tr><td><span>This box should be green.</span></td></tr></table></div>
21   </div>
22  </body>
23 </html>