bidi-border-collapse-001.xht (1265B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com"/> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders"/> 6 <meta name="assert" content="Collapsed borders should behave the same way in ltr and rtl contexts"/> 7 <title>CSS Test: border-collapse in bidi context - border-right</title> 8 <style type="text/css"><![CDATA[ 9 table { 10 border-collapse:collapse; 11 margin-bottom: 1em; 12 } 13 tr { 14 border-left: 5px solid fuchsia; 15 border-right: 5px solid purple; 16 } 17 td.right { 18 background-color: yellow; 19 border-right: 5px solid orange; 20 } 21 td.left { 22 background-color: aqua; 23 border-right: 5px solid teal; 24 } 25 ]]></style> 26 </head> 27 28 <body> 29 30 <p>The two tables should be identical:</p> 31 32 <table dir="rtl"> 33 <tr> 34 <td class="right">XX XX XX</td> 35 <td class="left">XX</td> 36 </tr> 37 </table> 38 39 40 <table dir="ltr"> 41 <tr> 42 <td class="left">XX</td> 43 <td class="right">XX XX XX</td> 44 </tr> 45 </table> 46 47 </body> 48 </html>