summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/empty-inline-003-quirksmode.htm
blob: 7e1f490b2684501291dbd03e6275191638a1fe40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<html>

 <head>

  <title>This is a quirks-mode version of empty-inline-003.htm from the CSS 2.1 test suite</title>

  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height">
  <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
  <link rel="author" title="Bruno Fassino" href="fassino[at]gmail.com">
  <meta content="The line-height of an empty inline element influences the height of a line containing it with some other content" name="assert">
  <meta content="" name="flags">

  <style type="text/css">

  #test
  {
  background-color: lime;
  line-height: 1;
  }

  #empty-inline-element
  {
  line-height: 5;
  }

  #reference-overlapped-red
  {
  background-color: red;
  left: 0;
  line-height: 5;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
  }

  #relatively-positioned-wrapper
  {
  position: relative;
  }
  </style>

 </head>

 <body style="font: 16px Ahem;">
<!--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).-->

  <div id="relatively-positioned-wrapper">
   <div id="test"><span id="empty-inline-element"></span>X</div>
   <div id="reference-overlapped-red">X</div>
 </body>
</html>