Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / empty-inline-002.htm
bloba43a46598ed383066ac2920f65aaf1b9d302dcf3
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Empty line box influence</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading">
8 <meta name="flags" content="ahem">
9 <script src="../../resources/ahem.js"></script>
10 <meta name="assert" content="Empty inline elements still influence calculation just like elements with content.">
11 <style type="text/css">
12 div, span
14 font: 1in/1em Ahem;
16 #div1
18 margin-top: 1in;
20 #div2, #div3
22 width: 5in;
24 #div2
26 border: 0.25in solid green;
28 span
30 background: green;
31 border: 0.25in solid green;
32 margin: 1in;
33 padding: 1in;
35 #div3
37 border: 0.25in solid red;
38 height: 1in;
39 position: relative;
40 top: -1.5in;
41 z-index: -1;
43 #div3 div
45 background: red;
46 border: 0.25in solid red;
47 height: 3in;
48 margin: 0 1in;
49 position: relative;
50 top: -1.25in;
51 width: 2in;
53 </style>
54 </head>
55 <body>
56 <p>Test passes if there is no red visible on the page.</p>
57 <div id="div1">
58 <div id="div2">
59 <span></span>
60 </div>
61 <div id="div3">
62 <div></div>
63 </div>
64 </div>
65 </body>
66 </html>