layout/reftests/generated-content/table-parts-01.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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#before-after-content"/>
michael@0 8 <meta name="flags" content="" />
michael@0 9 <style>
michael@0 10 table, div.gen { counter-reset:ctr; quotes:"\0022" "\0022" "\0022" "\0022"; }
michael@0 11
michael@0 12 .gen::before {
michael@0 13 content:counter(ctr) url(square-outline-32x32.png) open-quote "Before " attr(class);
michael@0 14 counter-increment:ctr;
michael@0 15 }
michael@0 16 .gen::after {
michael@0 17 content:counter(ctr) url(square-outline-32x32.png) "After " attr(class) close-quote;
michael@0 18 counter-increment:ctr;
michael@0 19 }
michael@0 20
michael@0 21 table { border:1px solid blue; }
michael@0 22 td { border:1px solid cyan; }
michael@0 23 td { border-spacing:0; padding:0; }
michael@0 24
michael@0 25 tr.gen::before, tr.gen::after { display:table-cell; }
michael@0 26 tbody.gen::before, tbody.gen::after { display:table-row; }
michael@0 27 table.gen::before, table.gen::after { display:table-row-group; }
michael@0 28 table.col::before, table.gen.col::after { display:table-column-group; }
michael@0 29 /* note reordering here! */
michael@0 30 table.headfoot::after { display:table-header-group; }
michael@0 31 table.headfoot::before { display:table-footer-group; }
michael@0 32
michael@0 33 .cell { display:table-cell; }
michael@0 34 .row { display:table-row; }
michael@0 35 .rowgroup { display:table-row-group; }
michael@0 36 .table { display:table; }
michael@0 37 div.gencell::before, div.gencell::after { display:table-cell; }
michael@0 38 div.genrow::before, div.genrow::after { display:table-row; }
michael@0 39 div.genblock::before, div.genblock::after { display:block; }
michael@0 40 div.geninline::before, div.geninline::after { display:inline; }
michael@0 41
michael@0 42 div { border:1px solid green; margin:5px; }
michael@0 43
michael@0 44 .varyheight::before { height:100px; background:yellow; }
michael@0 45 .varyheight > div { height:80px; background:orange; }
michael@0 46 .varyheight::after { height:60px; background:brown; }
michael@0 47
michael@0 48 .varywidth::before { background:yellow; }
michael@0 49 .varywidth > div { background:orange; }
michael@0 50 .varywidth::after { background:brown; }
michael@0 51 </style>
michael@0 52 </head>
michael@0 53
michael@0 54 <body>
michael@0 55 <table style="border:none" width="100%"><tr><td style="border:none" valign="top">
michael@0 56 <div><table><tbody><tr class="gen"><td>Inner</td></tr></tbody></table></div>
michael@0 57 <div><table><tbody class="gen"><tr><td>Inner</td></tr></tbody></table></div>
michael@0 58 <div><table class="gen"><tfoot><tr><td>Inner</td></tr></tfoot></table></div>
michael@0 59 <div><table class="gen col"><tbody><tr><td>Inner</td></tr></tbody></table></div>
michael@0 60 <div><table class="gen headfoot"><tbody><tr><td>Inner</td></tr></tbody></table></div>
michael@0 61 <div><div class="gen table gencell varyheight"><div class="cell">Inner</div></div></div>
michael@0 62 <div><div class="gen gencell varyheight"><div class="cell">Inner</div></div></div>
michael@0 63 <div><div class="gen genrow varywidth"><div class="row">Inner</div></div></div>
michael@0 64 </td><td style="border:none" valign="top">
michael@0 65 <div><div class="gen row gencell"><div class="cell">Inner</div></div></div>
michael@0 66 <div><div class="gen row genblock"><div class="cell">Inner</div></div></div>
michael@0 67 <div><div class="gen row geninline"><div class="cell">Inner</div></div></div>
michael@0 68 <div><div class="gen rowgroup genrow"><div class="row"><div class="cell">Inner</div></div></div></div>
michael@0 69 <div><div class="gen rowgroup gencell"><div class="row"><div class="cell">Inner</div></div></div></div>
michael@0 70 <div><div class="gen rowgroup genblock"><div class="row"><div class="cell">Inner</div></div></div></div>
michael@0 71 <div><div class="gen rowgroup geninline"><div class="row"><div class="cell">Inner</div></div></div></div>
michael@0 72 </tr></td></table>
michael@0 73 </body>
michael@0 74 </html>

mercurial