tor-browser

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

clear-applies-to-016.xht (2089B)


      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: 'clear' applied to the table wrapper box (has 1 caption at top)</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10 
     11   <!--
     12   "(...) list of properties that are used on the table wrapper box and not
     13   the table box. (...) this is the case for 'clear' as well:
     14   If 'clear' is to have an effect, the table and its captions (if any)
     15   should stay together and not be separated by clearance.
     16   Re: [CSS21] The 'clear' property on table wrappers.
     17   http://lists.w3.org/Archives/Public/www-style/2012Jun/0072.html
     18   -->
     19 
     20   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" />
     21   <link rel="match" href="../floats-clear/clear-applies-to-009-ref.xht" />
     22 
     23   <meta name="assert" content="The 'clear' property apply to elements with a display of 'table' and is applied to the table wrapper box and not on the table box. In this test, the table wrapper box has a table caption placed before the table box." />
     24 
     25   <style type="text/css"><![CDATA[
     26   body {margin: 8px;}
     27 
     28   p
     29   {
     30   float: left;
     31   line-height: 1.25;
     32   margin: 1em 0;
     33   width: 320px;
     34   }
     35 
     36   div#table
     37   {
     38   background-color: blue;
     39   clear: both;
     40   display: table;
     41   table-layout: fixed;
     42   width: 1in;
     43   }
     44 
     45   div#caption
     46   {
     47   background-color: blue;
     48   caption-side: top;
     49   color: blue;
     50   display: table-caption;
     51   height: 0.5in;
     52   width: 1in;
     53   }
     54 
     55   div.row {display: table-row;}
     56 
     57   div.cell
     58   {
     59   color: blue;
     60   display: table-cell;
     61   height: 0.25in;
     62   }
     63   ]]></style>
     64 
     65  </head>
     66 
     67  <body>
     68 
     69   <p>Test passes if there is a filled blue square <strong>below this text</strong>.</p>
     70 
     71   <div id="table">
     72 
     73       <div id="caption">cap</div>
     74 
     75       <div class="row">
     76           <div class="cell">a</div><div class="cell">b</div>
     77       </div>
     78 
     79       <div class="row">
     80           <div class="cell">c</div><div class="cell">d</div>
     81       </div>
     82 
     83   </div>
     84 
     85  </body>
     86 </html>