tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

margin-007.xht (1896B)


      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 two 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-007-ref.xht" />
     10 
     11         <meta name="assert" content="The 'margin' property set to 'inherit', inherits two values from the parent element." />
     12         <style type="text/css">
     13             #wrapper
     14             {
     15                 position: relative;
     16             }
     17             #div1, #div2
     18             {
     19                 border: 10px solid green;
     20             }
     21             #div1, #reference
     22             {
     23                 position: absolute;
     24             }
     25             #div1
     26             {
     27                 left: 0;
     28                 margin: 2.54cm 0.25in;
     29                 top: 0;
     30             }
     31             #div2
     32             {
     33                 height: 1in;
     34                 margin: inherit;
     35                 width: 3in;
     36             }
     37             #reference
     38             {
     39                 border: 10px solid red;
     40                 height: 308px;
     41                 left: 0.25in;
     42                 top: 1in;
     43                 width: 356px;
     44             }
     45         </style>
     46     </head>
     47     <body>
     48         <p>Test passes if there is <strong>no red</strong>.</p>
     49         <div id="wrapper">
     50             <div id="reference"></div>
     51             <div id="div1">
     52                 <div id="div2"></div>
     53             </div>
     54         </div>
     55     </body>
     56 </html>