Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / empty-inline-line-height-first-line.htm
blob5949f84c5b95dadc08c66156167a3887d1d6803b
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
4 <head>
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">
16 #test
18 background-color: lime;
19 line-height: 1;
22 #empty-inline-element
24 line-height: 10;
27 #test:first-line
29 line-height: 5;
32 #reference-overlapped-red
34 background-color: red;
35 left: 0;
36 line-height: 15;
37 position: absolute;
38 top: 0;
39 width: 100%;
40 z-index: -1;
43 #relatively-positioned-wrapper
45 position: relative;
47 </style>
49 </head>
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">
57 <div id="test">
58 <span></span><br>
59 <span id="empty-inline-element"></span>X
60 </div>
62 <div id="reference-overlapped-red">X</div>
64 </div>
66 </body>
67 </html>