border-radius-applies-to-007.htm (1375B)
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-radius' applied to element with 'display' set to 'table-caption'.</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/css3-background/#border-radius" /> 7 <meta name="assert" content="When 'border-radius' is applied to an element with 'displaye: table-caption' it produces rounded corners." /> 8 <style type="text/css"> 9 #caption 10 { 11 border: solid green; 12 border-radius: 10px; 13 display: table-caption; 14 height: 1in; 15 width: 1in; 16 } 17 #table 18 { 19 display: table; 20 } 21 #row 22 { 23 display: table-row; 24 } 25 #cell 26 { 27 display: table-cell; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is a box with rounded corners below.</p> 33 <div id="table"> 34 <div id="caption"></div> 35 <div id="row"> 36 <div id="cell"></div> 37 </div> 38 </div> 39 </body> 40 </html>