tor-browser

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

margin-collapse-159.xht (1810B)


      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 (height, simple) - not really margin collapsing</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/059.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-159-ref.xht" />
     10 
     11   <style type="text/css">
     12    table { border-spacing: 0; font-size: 50px; border: solid; background: red; }
     13    td { padding: 0; width: 1em; background: red; vertical-align: top; }
     14 
     15    .a { background: orange; }
     16    .a .container { height: 1em; background: red; }
     17    .a .sized { height: 3em; margin: 0 0 1em 0; background: aqua; }
     18    .a .after { height: 1em; margin: 0 0 1em 0; background: yellow; }
     19 
     20    .b .a { border-top: solid aqua 1em; }
     21    .b .b { border-top: solid yellow 1em; }
     22    .b .c { border-top: solid aqua 1em; }
     23    .b .d { border-top: solid orange 1em; }
     24 
     25   </style>
     26  </head>
     27  <body>
     28   <p>Test passes if there is a stack of 4 horizontal bands which are <strong>from top to bottom: aqua, yellow, aqua, orange</strong> with no red.</p>
     29   <table>
     30    <tr>
     31     <td class="a">
     32      <div class="container">
     33       <div class="sized"></div>
     34      </div>
     35      <div class="after"></div>
     36     </td>
     37     <td class="b">
     38      <div class="a"></div>
     39      <div class="b"></div>
     40      <div class="c"></div>
     41      <div class="d"></div>
     42     </td>
     43    </tr>
     44   </table>
     45 
     46 </body>
     47 </html>