border-radius-not-inherited-001.htm (1262B)
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' is not 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/css3-background/#border-radius" /> 7 <meta name="assert" content="'Border-radius' is not inherited by default." /> 8 <style type="text/css"> 9 div 10 { 11 height: 100px; 12 width: 100px; 13 } 14 #parent 15 { 16 border: 1px solid transparent; 17 border-radius: 100px; 18 } 19 #child 20 { 21 border: medium solid black; 22 } 23 #reference 24 { 25 margin-top: 10px; 26 border: medium solid black; 27 border-radius: 100px; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is a square and a circle below.</p> 33 <div id="parent"> 34 <div id="child"></div> 35 </div> 36 <div id="reference"></div> 37 </body> 38 </html>