tor-browser

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

margin-collapse-103.xht (1138B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
      3 <head>
      4   <title>CSS Test: Margin Collapsing: fixed positioned</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-08-15 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/003.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins"/>
      9   <link rel="match" href="margin-collapse-103-ref.xht" />
     10 
     11   <style type="text/css">
     12    div.test { background: green; position: fixed; top: 4em; }
     13    div.test div { background: red; margin: 5em 2.5em; }
     14    div.control { height: 5em; width: 5em; background: red; position: fixed; top: 4em; }
     15   </style>
     16  </head>
     17  <body>
     18   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     19   <div class="control"></div>
     20   <div class="test">
     21    <div></div>
     22   </div>
     23 
     24 
     25 </body>
     26 </html>