border-conflict-element-vlr-005.xht (1962B)
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 conflict resolution - adjacent cells with same border styles in a 'vertical-lr' table with 'direction: ltr' (basic)</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/#logical-directions" title="6.2 Flow-relative Directions" /> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#border-conflict-resolution" title="17.6.2.1 Border conflict resolution" /> 12 <link rel="match" href="../reference/ref-filled-green-100px-square.xht" /> 13 14 <meta content="When two adjacent cells have the same 'border-width' value and the same 'border-style' value in a 'border-collapse: collapse' table, then the color of the border of the cell closest to line-left side wins (if the table's 'direction' is 'ltr'; line-right side, if it is 'rtl') and the color of the border of the cell closest to block-start side wins." name="assert" /> 15 16 <style type="text/css"><![CDATA[ 17 table 18 { 19 border-collapse: collapse; 20 direction: ltr; 21 writing-mode: vertical-lr; 22 } 23 24 td 25 { 26 padding: 0px; 27 } 28 29 td#five 30 { 31 border-right-color: green; 32 border-right-style: solid; 33 border-right-width: 100px; 34 } 35 36 td#eight 37 { 38 border-left-color: red; 39 border-left-style: solid; 40 border-left-width: 100px; 41 height: 100px; 42 } 43 ]]></style> 44 45 </head> 46 47 <body> 48 49 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 50 51 <table> 52 53 <tr> 54 <td></td> <td></td> <td></td> 55 </tr> 56 57 <tr> 58 <td></td> <td id="five"></td> <td></td> 59 </tr> 60 61 <tr> 62 <td></td> <td id="eight"></td> <td></td> 63 </tr> 64 65 </table> 66 67 </body> 68 </html>