border-applies-to-006.xht (1999B)
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 applied to element with 'display' set to 'table-column'</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-12-08 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-border" /> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties" /> 9 <link rel="match" href="border-applies-to-001-ref.xht" /> 10 11 <meta name="assert" content="The 'border' property applies to elements with a display of 'table-column'." /> 12 <style type="text/css"> 13 #test 14 { 15 border: green solid 4px; 16 display: table-column; 17 } 18 #table 19 { 20 border-collapse: collapse; 21 display: table; 22 table-layout: fixed; 23 width: 200px; 24 } 25 26 .column 27 { 28 display: table-column; 29 } 30 31 .row 32 { 33 display: table-row; 34 } 35 .cell 36 { 37 color: white; 38 display: table-cell; 39 height: 48px; 40 } 41 </style> 42 </head> 43 <body> 44 <p>Test passes if there is a hollow green square.</p> 45 46 <div id="table"> 47 48 <div id="test"></div><div class="column"></div> 49 50 <div class="row"> 51 <div class="cell">a</div><div class="cell">b</div> 52 </div> 53 54 <div class="row"> 55 <div class="cell">c</div><div class="cell">d</div> 56 </div> 57 58 </div> 59 60 </body> 61 </html>