Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / CSS2 / margin-padding-clear / margin-008.xht
blob73214880985c9259785e5310abce814817e1bb91
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3     <head>
4         <title>CSS Test: Margin set to 'inherit', inheriting three values</title>
5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
6         <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-08-13 -->
7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-margin" />
8         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" />
9         <link rel="match" href="margin-008-ref.xht" />
11         <meta name="flags" content="" />
12         <meta name="assert" content="The 'margin' property set to 'inherit', inherits three values from the parent element." />
13         <style type="text/css">
14             #wrapper
15             {
16                 position: relative;
17             }
18             #div1, #div2
19             {
20                 border: 10px solid green;
21             }
22             #div1, #reference
23             {
24                 position: absolute;
25             }
26             #div1
27             {
28                 left: 0;
29                 margin: 2.54cm 0.25in 144pt;
30                 top: 0;
31             }
32             #div2
33             {
34                 height: 1in;
35                 margin: inherit;
36                 width: 3in;
37             }
38             #reference
39             {
40                 border: 10px solid red;
41                 height: 404px;
42                 left: 0.25in;
43                 top: 1in;
44                 width: 356px;
45             }
46         </style>
47     </head>
48     <body>
49         <p>Test passes if there is <strong>no red</strong>.</p>
50         <div id="wrapper">
51             <div id="reference"></div>
52             <div id="div1">
53                 <div id="div2"></div>
54             </div>
55         </div>
56     </body>
57 </html>