inlines-017

First line alignment

WeasyPrint

This browser

Flags
ahem

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html lang="en">
 3  <head>
 4   <title>CSS Test: First line alignment</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/017.html" type="text/html">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#inline-boxes">
 8   <meta name="flags" content="ahem">
 9   <style type="text/css">
10    .ahem { display: inline; font: 900 1em/1 Ahem, sans-serif; background: red; color: white; }   
11    p { font: 1em/1 Ahem; width: 10em; }
12    span { color: teal; border-left: 1em teal solid; padding-left: 1em; line-height: 2; }
13   </style>
14  </head>
15  <body>
16   <div>There should be a perfect five by five grid of dots below.</div>
17   <p>
18    <span> x x x x x x x x x x x x x x x x x x x x x x x x </span> 
19   </p>
20  </body>
21 </html>