tor-browser

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

before-after-table-whitespace-001.xht (1604B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
      2     <title>CSS Test: generated content</title>
      3     <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" />
      4     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
      5     <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
      6     <link rel="match" href="before-after-table-whitespace-001-ref.xht"/>
      7 <style type="text/css">
      8 .gen0:before {
      9   padding:1px;
     10 }
     11 .gen1:before {
     12   content: " ";
     13 }
     14 .gen2:before {
     15   content: attr(missing);
     16 }
     17 .gen3:before {
     18   content: url(missing-image.png);
     19 }
     20 
     21 div { border:1px solid green; margin:5px; }
     22 </style>
     23 </head>
     24 
     25 <!-- This tests that generated content items that evaluate to empty strings or
     26      broken images are *not* treated as whitespace text and ignored by the table.
     27      Altogether missing content should be ignored, though. (In fact it won't even be generated.) -->
     28 
     29 <body>
     30 <div>
     31   <table><tbody><tr class="gen0"><td>Cell0</td></tr>
     32                 <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
     33 </div>
     34 <div>
     35   <table><tbody><tr class="gen1"><td>Cell0</td></tr>
     36                 <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
     37 </div>
     38 <div>
     39   <table><tbody><tr class="gen2"><td>Cell0</td></tr>
     40                 <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
     41 </div>
     42 <div>
     43   <table><tbody><tr class="gen3"><td>Cell0</td></tr>
     44                 <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
     45 </div>
     46 
     47 
     48 </body></html>