border-spacing-vrl-002.xht (4768B)
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: border-spacing - first value is specified and non-zero in 'vertical-rl' table</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#dimension-mapping" title="7.2 Dimension Mapping" /> 11 <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#separated-borders" title="17.6.1 The separated borders model" /> 12 <link rel="match" href="border-spacing-vrl-002-ref.xht" /> 13 14 <meta content="ahem" name="flags" /> 15 <meta content="This test checks that first value of 'border-spacing' represents, from top to bottom, a) spacing between logical table right padding (physical table top padding) and rightmost cells and b) inter-column spacing and c) spacing between leftmost cells and logical table left padding (physical table bottom padding)." name="assert" /> 16 17 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 18 <style type="text/css"><![CDATA[ 19 table 20 { 21 border-spacing: 0.5em 0em; /* computes to logical horizontal border-spacing: 10px */ 22 font: 20px/1 Ahem; /* computes to 20px/20px */ 23 padding: 1.25em 0em; /* computes to padding-top: 25px and padding-bottom: 25px */ 24 writing-mode: vertical-rl; 25 } 26 27 td 28 { 29 height: 0.5em; 30 padding: 0em; 31 width: 1em; 32 } 33 34 /* 35 36 0px width of nth row 20px TOP 37 | | 38 =================================== 0x (0em) ||| 39 | table padding-top 25px (1.25em) | ||| 40 | with red background=color | \ ||| / 41 | with red background=color | \ / 42 | with red background=color | \ / 43 | with red background=color | v 44 =================================== 25px (1.25em) 45 |logical righ border-spacing: 10px| 46 | with red background=color | 47 =================================== 35px (1.75em) 48 | height of 1st td 10px (0.5em) | ||| 49 | with red background=color | ||| 50 =================================== 45px (2.25em) \ ||| / 51 |inter-column spacing 10px (0.5em)| \ / 52 | with red background=color | \ / 53 =================================== 55px (2.75em) v 54 | height of 2nd td 10px (0.5em) | 55 | with red background=color | 56 =================================== 65px (3.25em) 57 |logical left border-spacing: 10px| ||| 58 | with red background=color | ||| 59 =================================== 75px (3.75em) \ ||| / 60 |tble padding-bottom 25px (1.25em)| \ / 61 | with red background=color | \ / 62 | with red background=color | v 63 | with red background=color | 64 | with red background=color | 65 =================================== 100px (5em) BOTTOM 66 67 */ 68 69 div#reference-overlapping-green 70 { 71 background-color: green; 72 height: 6.25em; 73 position: absolute; 74 width: 6.25em; 75 } 76 77 div#reference-overlapped-red 78 { 79 background-color: red; 80 height: 6.25em; 81 position: absolute; 82 width: 6.25em; 83 z-index: -1; 84 } 85 86 table#test-overlapped-red 87 { 88 background-color: red; 89 } 90 91 table#test-overlapping-green 92 { 93 background-color: green; 94 } 95 ]]></style> 96 </head> 97 98 <body> 99 100 <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p> 101 102 <div id="reference-overlapping-green"></div> 103 104 <table id="test-overlapped-red"> 105 106 <tr><td></td><td></td></tr> 107 108 <tr><td></td><td></td></tr> 109 110 <tr><td></td><td></td></tr> 111 112 <tr><td></td><td></td></tr> 113 114 <tr><td></td><td></td></tr> 115 116 </table> 117 118 <div id="reference-overlapped-red"></div> 119 120 <table id="test-overlapping-green"> 121 122 <tr><td></td><td></td></tr> 123 124 <tr><td></td><td></td></tr> 125 126 <tr><td></td><td></td></tr> 127 128 <tr><td></td><td></td></tr> 129 130 <tr><td></td><td></td></tr> 131 132 </table> 133 134 </body> 135 </html>