1
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>CSS
2.1 Test Suite: line-height
</title>
5 <script src=
"../resources/ahem.js"></script>
6 <style type=
"text/css">
7 div
{ font: 12px Ahem
; background: red url
(support
/pattern-gg-gr
.png
); color: lime
; width: 4em; padding: 0.5em 0 0.5em 1em; border: solid black
; margin: 0.5em; }
9 .eight {line-height: 200%;}
10 .nine {line-height: 2;}
11 .ten {line-height: 24px;}
12 .eleven {line-height: -1em; line-height: 2em; line-height: -1em;}
13 .seven {line-height: 2.5ex;}
15 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#q26" title=
"10.8.1 Leading and half-leading">
18 <p>There should be a big pattern of green and lime dots below, with no red present.
</p>
20 <p class=
"eight"> X X X X
</p>
21 <p class=
"nine"> X X X X
</p>
22 <p class=
"ten"> X X X X
</p>
23 <p class=
"eleven"> X X X X
</p>
24 <p class=
"seven"> X X X X
</p> <!-- ex comes last because it is the least likely to be supported -->