border-radius-010.xht (1780B)
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: Borders. border–radius using "inherit"</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 6 <link rel="author" title="Nokia" href="http://www.nokia.com/"/> 7 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-radius" /> 8 <link rel="match" href="border-radius-010-ref.xht" /> 9 <meta name="assert" content="To verify inherit feature works, when it is assigned to border-radius" /> 10 <style> 11 body { 12 border-top-left-radius: 20% 25px; 13 border-bottom-right-radius: 20pt 3em; 14 } 15 div { 16 border: 2px solid #a1a1a1; 17 background: #dddddd; 18 width: 200px; 19 height: 100px; 20 border-radius: inherit; 21 } 22 #reference { 23 border-top-left-radius: 20% 25px; 24 border-top-right-radius: 0; 25 border-bottom-right-radius: 20pt 3em; 26 border-bottom-left-radius: 0; 27 } 28 </style> 29 </head> 30 <body> 31 <p>There should be two identical boxes, each with rounded corners at the top left and bottom right only.</p> 32 <ul> 33 <li>PASS if the two boxes below are the same and only top left and bottom right corners are rounded.</li> 34 <li>FAIL if the output is not as expected.</li> 35 </ul> 36 37 <!-- PLACE TEST CONTENT FROM HERE --> 38 <div id="test"></div> 39 <p><br/></p> 40 <div id="reference"></div> 41 </body> 42 </html>