OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
| 5 <head> |
| 6 |
| 7 <title>CSS Writing Modes Test: 'caption-side: block-start' and vertical-rl</ti
tle> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#caption-side"
title="7.7 Table Caption Mappings: the caption-side keywords" /> |
| 11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
| 12 |
| 13 <meta content="ahem image" name="flags" /> |
| 14 <meta content="This test checks that when 'caption-side' is set to 'block-star
t' in a vertical-rl table, then the caption is placed at the block-start side of
the table, which is on the righthand side of such table." name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div#reference-overlapped-red |
| 18 { |
| 19 background: url("support/pattern-gr-gr-100x100.png") no-repeat; |
| 20 height: 100px; |
| 21 position: absolute; |
| 22 width: 100px; |
| 23 z-index: -1; |
| 24 } |
| 25 |
| 26 table#test-overlapping-green |
| 27 { |
| 28 border-spacing: 0px; |
| 29 caption-side: bottom; /* very important declaration to do here */ |
| 30 caption-side: block-start; |
| 31 font: 3.125em/1 Ahem; /* computes to 50px/50px */ |
| 32 -webkit-writing-mode: vertical-rl; |
| 33 } |
| 34 |
| 35 caption |
| 36 { |
| 37 color: green; |
| 38 } |
| 39 |
| 40 td |
| 41 { |
| 42 color: transparent; |
| 43 padding: 0px; |
| 44 } |
| 45 ]]></style> |
| 46 |
| 47 </head> |
| 48 |
| 49 <body> |
| 50 |
| 51 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 52 |
| 53 <div id="reference-overlapped-red"></div> |
| 54 |
| 55 <table id="test-overlapping-green"> |
| 56 <caption>CA</caption> |
| 57 <tr> |
| 58 <td>T</td><td>D</td> |
| 59 </tr> |
| 60 </table> |
| 61 |
| 62 </body> |
| 63 </html> |
OLD | NEW |