tor-browser

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

anonymous-table-box-width-001.xht (1605B)


      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: Width of anonymous table box versus caption box in the automatic table layout</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" title="17.5.2.2 Automatic table layout" href="http://www.w3.org/TR/CSS21/tables.html#auto-table-layout" />
     11   <link rel="bookmark" title="Issue 172: table-caption content overflows" href="http://wiki.csswg.org/spec/css2.1#issue-172" />
     12   <link rel="bookmark" title="Anonymous table box is as wide as max(table-width, table-caption-min-intrinsic-width)" href="http://lists.w3.org/Archives/Public/www-style/2010Sep/0186.html" />
     13   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     14 
     15   <meta content="Anonymous table box should be as wide as max(table-width, table-caption-min-intrinsic-width)." name="assert" />
     16 
     17   <style type="text/css"><![CDATA[
     18   div#overlapped-red {
     19     background-color: red;
     20     height: 100px;
     21     position: absolute;
     22     width: 100px;
     23     z-index: -1;
     24   }
     25 
     26   table#overlapping-green {
     27     border-bottom: green solid 100px;
     28     border-spacing: 0;
     29   }
     30 
     31   caption {width: 100px;}
     32 
     33   td {padding: 0;}
     34 
     35   ]]></style>
     36 
     37  </head>
     38 
     39  <body>
     40 
     41   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     42 
     43   <div id="overlapped-red"></div>
     44 
     45   <table id="overlapping-green">
     46    <caption></caption>
     47    <tr><td></td></tr>
     48   </table>
     49 
     50  </body>
     51 </html>