Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / inline-non-replaced-height-002.htm
blobaee3e57ff0c95f41d5729764c39fd8e0fe0c59c6
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: Inline non-replaced elements and padding</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#inline-non-replaced">
7 <meta name="flags" content="ahem">
8 <script src="../../resources/ahem.js"></script>
9 <meta name="assert" content="The padding starts at the top and bottom of the content area not the 'line-height'.">
10 <style type="text/css">
11 #div1
13 margin-top: 1in;
14 position: relative;
16 span
18 background: blue;
19 color: blue;
20 font: 1in Ahem;
21 line-height: 1.5in;
22 padding: 0.5in 0;
24 div div
26 background: orange;
27 height: 2in;
28 left: 1in;
29 position: absolute;
30 top: -0.25in;
31 width: 1in;
33 </style>
34 </head>
35 <body>
36 <p>Test passes if the blue and orange boxes below are the same height.</p>
37 <div id="div1">
38 <span>X</span>
39 <div></div>
40 </div>
41 </body>
42 </html>