border-collapse-inherited-001.xht (1697B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Border-collapse is inherited by default</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#propdef-border-collapse" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#borders" /> 8 <meta name="assert" content="Border-collapse is inherited by default." /> 9 <style type="text/css"> 10 #container 11 { 12 border-collapse: collapse; 13 } 14 #table 15 { 16 background: red; 17 border-spacing: 10px; 18 border-style: none; 19 display: table; 20 } 21 .row 22 { 23 display: table-row; 24 } 25 .cell 26 { 27 background: black; 28 border: 3px solid black; 29 display: table-cell; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if there is a single box below and there is no red visible on the page.</p> 35 <div id="container"> 36 <div id="table"> 37 <div class="row"> 38 <div class="cell">XXXXX</div> 39 <div class="cell">XXXXX</div> 40 </div> 41 <div class="row"> 42 <div class="cell">XXXXX</div> 43 <div class="cell">XXXXX</div> 44 </div> 45 </div> 46 </div> 47 </body> 48 </html>