1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
4 <title>Compact: Correct vertical alignment</title>
5 <style type="text/css">
6 .control { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
7 .container { background: red; color: green; width: 2em; font: 2em/1 Ahem; }
8 .compact { display: compact; }
9 .block { display: block; margin: 0 0 0 1em; }
13 <div class="control">Ahem_font_required_for_this_test.</div>
14 <p>There should be a single green rectangle square below.</p>
15 <div class="container">
16 <div class="compact"> X </div>
17 <div class="block"> X </div>