tor-browser

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

margin-collapse-110.xht (2005B)


      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 combinations)</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/010.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-110-ref.xht" />
     10 
     11   <style type="text/css">
     12    table { border-spacing: 0; font-size: 50px; border: solid 3px; background: orange; }
     13    td { padding: 0; }
     14    div { height: 1em; width: 1em; }
     15    .a { background: yellow; }
     16    .b { background: lime; }
     17    /* column 1 */
     18    .t1 .a { margin: 1em 0 1em; }
     19    .t1 .b { margin: 1em 0 1em; }
     20    /* column 2 */
     21    .t2 .a { margin: 1em 0 1em; }
     22    .t2 .b { margin: 0em 0 1em; }
     23    /* column 3 */
     24    .t3 .a { margin: 1em 0 0em; }
     25    .t3 .b { margin: 1em 0 1em; }
     26    /* column 4 */
     27    .t4 .a { margin: 1em 0 2em; }
     28    .t4 .b { margin: -1em 0 1em; }
     29    /* column 5 */
     30    .t5 .a { margin: 1em 0 -1em; }
     31    .t5 .b { margin: 2em 0 1em; }
     32   </style>
     33  </head>
     34  <body>
     35   <p>Test passes if there is a stack of 5 bands which are <strong>from top to bottom: orange, yellow, orange, lime, orange</strong>.</p>
     36   <table>
     37    <tr>
     38     <td class="t1">
     39      <div class="a"></div>
     40      <div class="b"></div>
     41     </td>
     42     <td class="t2">
     43      <div class="a"></div>
     44      <div class="b"></div>
     45     </td>
     46     <td class="t3">
     47      <div class="a"></div>
     48      <div class="b"></div>
     49     </td>
     50     <td class="t4">
     51      <div class="a"></div>
     52      <div class="b"></div>
     53     </td>
     54     <td class="t5">
     55      <div class="a"></div>
     56      <div class="b"></div>
     57     </td>
     58    </tr>
     59   </table>
     60 
     61 </body>
     62 </html>