fonts-009

CSS Tables: Font Inheritance

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 Tables: Font Inheritance</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/table/007.xml" type="application/xhtml+xml">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout">
 8   <style type="text/css">
 9    .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10    div { font: 50px/1em Ahem; color: green; margin-left: 1em; }
11    div > * { display: table; background: red; }
12    td { padding: 0; }
13    table { border-spacing: 0; }
14   </style>
15  </head>
16  <body>
17   <div class="control">Ahem_font_required_for_this_test.</div>
18   <p>There should be no red below, merely two big identical green blocks.</p>
19   <div>
20    <div class="table"><tr><td>Test<br>Test</td></tr></div>
21    <p>Test<br>Test</p>
22   </div>
23  </body>
24 </html>