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-left-113.xht
blob14c64b0f323f804b53de77f057d54645cf202c40
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-left with a value of 'inherit'</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-17 -->
7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-margin-left" />
8         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" />
9                 <link rel="match" href="margin-left-113-ref.xht" />
11         <meta name="flags" content="" />
12         <meta name="assert" content="The 'margin-left' property sets a value of 'inherit'." />
13         <style type="text/css">
14             #wrapper
15             {
16                 margin-left: 1in;
17             }
18             div
19             {
20                 height: 1in;
21                 position: relative;
22                 width: 1in;
23             }
24             #div1
25             {
26                 border-left: 3px solid red;
27                 left: 0;
28                 position: absolute;
29             }
30             #div2
31             {
32                 margin-left: inherit;
33             }
34             #div3
35             {
36                 border-left: 3px solid black;
37                 margin-left: -1in;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if there is <strong>no red</strong>.</p>
43         <div id="wrapper">
44             <div id="div1"></div>
45             <div id="div2">
46                 <div id="div3"></div>
47             </div>
48         </div>
49     </body>
50 </html>