table-background-edge-and-border-model-001.xht (1565B)
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: Table background edge in the collapsing borders model</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#collapsing-borders" /> 7 <meta name="flags" content="image" /> 8 <meta name="assert" content="The background edge of a table could start either behind the table's border or at its edge in the collapsing borders model (non-normative rule)." /> 9 <style type="text/css"> 10 #table 11 { 12 background-image: url("support/blue-orange-rectangle.png"); 13 background-repeat: no-repeat; 14 border-collapse: collapse; 15 border-left: 100px solid black; 16 border-spacing: 0; 17 display: table; 18 height: 100px; 19 width: 100px; 20 } 21 .tr 22 { 23 display: table-row; 24 } 25 .td 26 { 27 display: table-cell; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is a black square below followed by either a blue or orange box.</p> 33 <div id="table"> 34 <div class="tr"> 35 <div class="td"></div> 36 <div class="td"></div> 37 </div> 38 </div> 39 </body> 40 </html>