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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/generated-content/table-ignoring-whitespace-01.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +    <title>CSS 2.1 Test Suite: generated content</title>
     1.8 +    <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org" />
     1.9 +    <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
    1.10 +    <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content"/>
    1.11 +    <meta name="flags" content="" />
    1.12 +<style>
    1.13 +.gen0::before {
    1.14 +  padding:1px;
    1.15 +}
    1.16 +.gen1::before {
    1.17 +  content: " ";
    1.18 +}
    1.19 +.gen2::before {
    1.20 +  content: attr(missing);
    1.21 +}
    1.22 +.gen3::before {
    1.23 +  content: url(missing-image.png);
    1.24 +}
    1.25 +
    1.26 +div { border:1px solid green; margin:5px; }
    1.27 +</style>
    1.28 +</head>
    1.29 +
    1.30 +<!-- This tests that generated content items that evaluate to empty strings or
    1.31 +     broken images are *not* treated as whitespace text and ignored by the table.
    1.32 +     Altogether missing content should be ignored, though. (In fact it won't even be generated.) -->
    1.33 +
    1.34 +<body>
    1.35 +<div>
    1.36 +  <table><tbody><tr class="gen0"><td>Cell0</td></tr>
    1.37 +                <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
    1.38 +</div>
    1.39 +<div>
    1.40 +  <table><tbody><tr class="gen1"><td>Cell0</td></tr>
    1.41 +                <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
    1.42 +</div>
    1.43 +<div>
    1.44 +  <table><tbody><tr class="gen2"><td>Cell0</td></tr>
    1.45 +                <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
    1.46 +</div>
    1.47 +<div>
    1.48 +  <table><tbody><tr class="gen3"><td>Cell0</td></tr>
    1.49 +                <tr><td>Cell1</td><td>Cell2</td></tr></tbody></table>
    1.50 +</div>
    1.51 +</body>
    1.52 +</html>

mercurial