tor-browser

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

collapsing-border-model-010b.xht (2726B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: border-collapse - 'border-spacing' does not apply to 'border-collapse: collapse' tables</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders" />
     11   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     12 
     13   <meta content="ahem" name="flags" />
     14   <meta content="'border-spacing' property only applies to tables applying the 'border-collapse: separate' model. When a CSS table applies the 'border-collapse: collapse' model, then any 'border-spacing' declaration is ignored." name="assert" />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   div#table
     19   {
     20   background-color: red;
     21   border-collapse: collapse;
     22   border-spacing: 50px;
     23   color: green;
     24   float: left; /* so that the CSS table only uses shrink-to-fit width */
     25   font: 1em/1 Ahem;
     26   }
     27 
     28   div#table-header {display: table-header-group;}
     29 
     30   div#table-footer {display: table-footer-group;}
     31 
     32   div#table-body {display: table-row-group;}
     33 
     34   div.table-row {display: table-row;}
     35 
     36   div.table-cell
     37   {
     38   background-color: green;
     39   border: 0.5em solid green;
     40   display: table-cell;
     41   padding: 5px;
     42   }
     43 
     44   div#table-body div.table-cell, div.table-row > div:first-child {padding: 0px;}
     45   ]]></style>
     46 
     47  </head>
     48 
     49  <body>
     50 
     51   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     52 
     53   <div id="table">
     54 
     55    <div id="table-header">
     56        <div class="table-row">
     57            <div class="table-cell">1</div> <div class="table-cell">2</div> <div class="table-cell">3</div>
     58        </div>
     59    </div>
     60 
     61    <div id="table-footer">
     62        <div class="table-row">
     63            <div class="table-cell">7</div> <div class="table-cell">8</div> <div class="table-cell">9</div>
     64        </div>
     65    </div>
     66 
     67    <div id="table-body">
     68        <div class="table-row">
     69            <div class="table-cell">4</div> <div class="table-cell">5</div> <div class="table-cell">6</div>
     70        </div>
     71    </div>
     72 
     73   </div>
     74 
     75   <!--
     76 
     77 		  1st col		   2nd col		 3rd col
     78 
     79 			 8				 8				 8
     80 			 0				 5				 5
     81 	8	0	16	0	8	5	16	5	8	5	16	5	8		thead == 100px
     82 			 0				 5				 5
     83 			 8				 8				 8
     84 			 0				 0				 0
     85 	8	0	16	0	8	0	16	0	8	0	16	0	8		tbody == 100px
     86 			 0				 0				 0
     87 			 8				 8				 8
     88   			 0				 5				 5
     89 	8	0	16	0	8	5	16	5	8	5	16	5	8		tfoot == 100px
     90 			 0				 5				 5
     91 			 8				 8				 8
     92 	====================================================
     93 			100px			100px			100px
     94 
     95   -->
     96 
     97  </body>
     98 </html>