Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / empty-inline-line-height-first-line-quirksmode.htm
blobf4ec1600cd0c566e9e801798c0d978c1ca271448
1 <html>
3 <head>
5 <title>This is a quirks-mode version of empty-inline-line-height-first-line.htm from the CSS 2.1 test suite</title>
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height">
8 <link rel="author" title="Robert Hogan" href="robert[at]roberthogan.net">
9 <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
10 <link rel="author" title="Bruno Fassino" href="fassino[at]gmail.com">
11 <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">
12 <meta content="" name="flags">
14 <style type="text/css">
15 #test
17 background-color: lime;
18 line-height: 1;
21 #empty-inline-element
23 line-height: 10;
26 #test:first-line
28 line-height: 5;
31 #reference-overlapped-red
33 background-color: red;
34 left: 0;
35 line-height: 15;
36 position: absolute;
37 top: 0;
38 width: 100%;
39 z-index: -1;
42 #relatively-positioned-wrapper
44 position: relative;
46 </style>
48 </head>
50 <body style="font: 16px Ahem;">
52 <!--In quirks mode there should be a green rectangle with a red rectangle of equal width but greater height below it, each contains a black box (X in ahem font).-->
54 <div id="relatively-positioned-wrapper">
56 <div id="test">
57 <span></span><br>
58 <span id="empty-inline-element"></span>X
59 </div>
61 <div id="reference-overlapped-red">X</div>
63 </div>
65 </body>
66 </html>