tor-browser

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

margin-collapse-113.xht (2186B)


      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: in flow (position of collapsed-through element)</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-17 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/013.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-113-ref.xht" />
     10 
     11   <style type="text/css">
     12    table { border-spacing: 0; font-size: 50px; border: solid 3px; background: red; }
     13    td { padding: 0; }
     14    /* test */
     15    .test { background: orange; width: 1em; }
     16    .test .a { background: yellow; margin: 0 0 1em 0; height: 1em; }
     17    .test .b { background: red; margin: 2em 0 0 0; position: relative; }
     18    .test .c { background: aqua; margin: 3em 0 0 0; height: 1em; }
     19    .test .d { background: lime; margin: 0; height: 1em; width: 100%; }
     20    .test .pos { position: absolute; }
     21    .test .float { float: left; }
     22    /* control */
     23    .control div { width: 1em; }
     24    .control .a { border-top: 1em yellow solid; }
     25    .control .b { border-top: 2em orange solid; }
     26    .control .c { border-top: 1em lime solid; }
     27    .control .d { border-top: 1em aqua solid; }
     28   </style>
     29  </head>
     30  <body>
     31   <p>Test passes if there is a stack of 4 bands which are <strong>from top to bottom: yellow, orange, lime, aqua</strong> and with no red.</p>
     32   <table>
     33    <tr>
     34     <td class="test">
     35      <div class="a"></div>
     36      <div class="b">
     37       <div class="d pos"></div>
     38      </div>
     39      <div class="c"></div>
     40     </td>
     41     <td class="test">
     42      <div class="a"></div>
     43      <div class="b">
     44       <div class="d float"></div>
     45      </div>
     46      <div class="c"></div>
     47     </td>
     48     <td class="control">
     49      <div class="a"></div>
     50      <div class="b"></div>
     51      <div class="c"></div>
     52      <div class="d"></div>
     53     </td>
     54    </tr>
     55   </table>
     56 
     57 </body>
     58 </html>