layout/reftests/generated-content/table-ignoring-whitespace-01.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial