margin-left-113

Margin-left with a value of 'inherit'

WeasyPrint

This browser

Assertion
The 'margin-left' property sets a value of 'inherit'.

Source

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