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

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial