1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
6 <title>CSS Test: Line height calculations: the 'line-height' and 'vertical-align' properties - Empty inline elements influence with first-line pseudo-element
</title>
8 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/visudet.html#line-height">
9 <link rel=
"author" title=
"Robert Hogan" href=
"robert[at]roberthogan.net">
10 <link rel=
"author" title=
"GĂ©rard Talbot" href=
"http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
11 <link rel=
"author" title=
"Bruno Fassino" href=
"fassino[at]gmail.com">
12 <meta content=
"The line-height of an empty inline element with a first-line pseudo-element is evaluated separately from the line-height of subsequent lines" name=
"assert">
13 <meta content=
"" name=
"flags">
15 <style type=
"text/css">
18 background-color: lime
;
32 #reference-overlapped-red
34 background-color: red
;
43 #relatively-positioned-wrapper
51 <body style=
"font: 16px Ahem;">
53 <!-- Test passes if there is a wide bright green rectangle below with a black box ("X" in ahem font) in it and if there is no red.-->
55 <div id=
"relatively-positioned-wrapper">
59 <span id=
"empty-inline-element"></span>X
62 <div id=
"reference-overlapped-red">X
</div>