Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / inline-block-non-replaced-height-002.htm
blob8181ec04cb73f6a3e14acf3b1ee2646dba31d00a
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-block non-replaced elements' margin box is used for the height of the line box</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#block-root-margin">
7 <meta name="flags" content="">
8 <meta name="assert" content="Inline-block non-replaced elements use the margin box for sizing the height of the line box.">
9 <style type="text/css">
10 #div1
12 line-height: 0;
13 position: relative;
15 #div2
17 background: blue;
19 #div2 div
21 display: inline-block;
22 height: 0;
23 margin: 0.5in 0;
25 div div
27 width: 1in;
29 #div3
31 background: orange;
32 left: 1in;
33 height: 1in;
34 position: absolute;
35 top: 0;
37 </style>
38 </head>
39 <body>
40 <p>Test passes if the blue and orange boxes below are the same height.</p>
41 <div id="div1">
42 <div id="div2">
43 <div></div>
44 </div>
45 <div id="div3"></div>
46 </div>
47 </body>
48 </html>