|
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#before-after-content"/> |
|
8 <meta name="flags" content="" /> |
|
9 <style> |
|
10 div { counter-reset:ctr; quotes:"\0022" "\0022" "\0022" "\0022"} |
|
11 |
|
12 div::before { |
|
13 content:counter(ctr) url(square-outline-32x32.png) open-quote "Before " attr(class); |
|
14 counter-increment:ctr; |
|
15 } |
|
16 div::after { |
|
17 content:counter(ctr) url(square-outline-32x32.png) "After " attr(class) close-quote; |
|
18 counter-increment:ctr; |
|
19 } |
|
20 |
|
21 .block::before, .block::after { display:block; } |
|
22 .inline::before, .inline::after { display:inline; } |
|
23 .inline-block::before, .inline-block::after { display:inline-block; } |
|
24 .table::before, .table::after { display:table; } |
|
25 .inline-table::before, .inline-table::after { display:inline-table; } |
|
26 .table-row-group::before, .table-row-group::after { display:table-row-group; } |
|
27 .table-row::before, .table-row::after { display:table-row; } |
|
28 .table-cell::before, .table-cell::after { display:table-cell; } |
|
29 .table-caption::before, .table-caption::after { display:table-caption; } |
|
30 .flexbox::before, .flexbox::after { display:-moz-box; } |
|
31 .inline-flexbox::before, .inline-flexbox::after { display:-moz-inline-box; } |
|
32 |
|
33 div { border:1px solid green; margin:5px; } |
|
34 </style> |
|
35 </head> |
|
36 |
|
37 <body> |
|
38 <table width="100%"><tr><td valign="top"> |
|
39 <div class="block">Inner</div> |
|
40 <div class="inline">Inner</div> |
|
41 <div class="inline-block">Inner</div> |
|
42 <div class="table">Inner</div> |
|
43 <div class="inline-table">Inner</div> |
|
44 <div class="table-row-group">Inner</div> |
|
45 </td><td valign="top"> |
|
46 <div class="table-row">Inner</div> |
|
47 <div class="table-cell">Inner</div> |
|
48 <div class="table-caption">Inner</div> |
|
49 <div class="flexbox">Inner</div> |
|
50 <div class="inline-flexbox">Inner</div> |
|
51 </td></tr></table> |
|
52 </body> |
|
53 </html> |