tor-browser

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

border-spacing-applies-to-006.xht (1558B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Border-spacing and 'display: table' elements</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#propdef-border-spacing" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#separated-borders" />
      8         <meta name="assert" content="Border-spacing applies to 'display: table' elements." />
      9         <style type="text/css">
     10             #table
     11             {
     12                 border-spacing: 20px;
     13                 display: table;
     14             }
     15             .tr
     16             {
     17                 display: table-row;
     18             }
     19             .td
     20             {
     21                 display: table-cell;
     22                 height: 100px;
     23                 width: 100px;
     24             }
     25             .top
     26             {
     27                 border: 10px solid blue;
     28             }
     29             .bottom
     30             {
     31                 border: 10px solid orange;
     32             }
     33         </style>
     34     </head>
     35     <body>
     36         <p>Test passes if there is a blue and orange square below and there is a vertical gap between the squares.</p>
     37         <div id="table">
     38             <div class="tr">
     39                 <div class="td top"></div>
     40             </div>
     41             <div class="tr">
     42                 <div class="td bottom"></div>
     43             </div>
     44         </div>
     45     </body>
     46 </html>