tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / css / empty-inline-line-height-first-line.htm
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3
4  <head>
5
6   <title>CSS Test: Line height calculations: the 'line-height' and 'vertical-align' properties - Empty inline elements influence with first-line pseudo-element</title>
7
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">
14
15   <style type="text/css">
16   #test
17   {
18   background-color: lime;
19   line-height: 1;
20   }
21
22   #empty-inline-element
23   {
24   line-height: 10;
25   }
26
27   #test:first-line
28   { 
29   line-height: 5;
30   }
31
32   #reference-overlapped-red
33   {
34   background-color: red;
35   left: 0;
36   line-height: 15;
37   position: absolute;
38   top: 0;
39   width: 100%;
40   z-index: -1;
41   }
42
43   #relatively-positioned-wrapper
44   {
45   position: relative;
46   }
47   </style>
48
49  </head>
50
51  <body style="font: 16px Ahem;">
52
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.-->
54
55   <div id="relatively-positioned-wrapper">
56
57    <div id="test">
58         <span></span><br>
59         <span id="empty-inline-element"></span>X
60    </div>
61
62    <div id="reference-overlapped-red">X</div>
63
64   </div>
65
66  </body>
67 </html>