caption-side-vlr-003.xht (1756B)
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: top' 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 'top' in a vertical-lr table, then the caption is placed at the block-start side of the table, which is on the lefthand 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 table#test-overlapping-green 19 { 20 border-spacing: 0px; 21 caption-side: top; 22 font: 50px/1 Ahem; /* computes to 50px/50px */ 23 writing-mode: vertical-lr; 24 } 25 26 caption 27 { 28 color: green; 29 } 30 31 td 32 { 33 color: transparent; 34 padding: 0px; 35 } 36 37 div#reference-overlapped-red 38 { 39 background: url("support/pattern-rg-rg-100x100.png") no-repeat; 40 bottom: 100px; 41 height: 100px; 42 position: relative; 43 width: 100px; 44 z-index: -1; 45 } 46 ]]></style> 47 48 </head> 49 50 <body> 51 52 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 53 54 <table id="test-overlapping-green"> 55 <caption>CA</caption> 56 <tr> 57 <td>T</td><td>D</td> 58 </tr> 59 </table> 60 61 <div id="reference-overlapped-red"></div> 62 63 </body> 64 </html>