tor-browser

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

margin-collapse-112.xht (1820B)


      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 (simple)</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/012.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-106-ref.xht" />
     10 
     11   <meta name="flags" content="ahem" />
     12 
     13   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     14   <style type="text/css">
     15    table { border-spacing: 0; font: 50px/1 Ahem; border: solid 3px; background: red; }
     16    td { padding: 0; }
     17    /* test */
     18    .test { background: orange; }
     19    .test div { margin: 1em 0; background: red; height: 1em; width: 1em; }
     20    .test .a { background: yellow; }
     21    .test .b { background: lime; }
     22    /* control */
     23    .control div { width: 1em; }
     24    .control .c { border-top: 1em orange solid; }
     25    .control .a { border-top: 1em yellow solid; }
     26    .control .b { border-top: 1em lime solid; }
     27   </style>
     28  </head>
     29  <body>
     30   <p>Test passes if there is a stack of 5 bands which are <strong>from top to bottom: orange, yellow, orange, lime, orange</strong> and with no red.</p>
     31   <table>
     32    <tr>
     33     <td class="test">
     34      <div class="a"></div>
     35      <div class="b"></div>
     36     </td>
     37     <td class="control">
     38      <div class="c"></div>
     39      <div class="a"></div>
     40      <div class="c"></div>
     41      <div class="b"></div>
     42      <div class="c"></div>
     43     </td>
     44    </tr>
     45   </table>
     46 
     47 </body>
     48 </html>