caption-side-vlr-005.xht (1743B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/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: bottom' and vertical-lr</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#logical-direction-layout" title="7.4. Flow-Relative Mappings" /> 11 <link rel="match" href="../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 'bottom' in a vertical-lr table, then the caption is placed at the block-end side of the table, which is on the righthand side of such table." name="assert" /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 div#reference-overlapped-red 19 { 20 background: url("support/pattern-gr-gr-100x100.png") no-repeat; 21 height: 100px; 22 position: absolute; 23 width: 100px; 24 z-index: -1; 25 } 26 27 table#test-overlapping-green 28 { 29 border-spacing: 0px; 30 caption-side: bottom; 31 font: 50px/1 Ahem; /* computes to 50px/50px */ 32 writing-mode: vertical-lr; 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>