border-radius-011.xht (1545B)
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 set to zero</title> 5 <link rel="author" title="Nokia" href="http://www.nokia.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-radius" /> 7 <link rel="match" href="border-radius-011-ref.xht" /> 8 <meta name="assert" content="If border-radius is zero, all corners are square." /> 9 <style> 10 div { 11 width: 200px; 12 height: 100px; 13 } 14 #reference { 15 background: red; 16 position: absolute; 17 top: 150px; 18 left: 30px; 19 } 20 #test { 21 position: absolute; 22 border-radius: 0; 23 background: white; 24 top: 150px; 25 left: 30px; 26 } 27 </style> 28 </head> 29 <body> 30 <p>A white rectangle with no border-radius property sits exactly on top of an exact same size red rectangle with border-radius set to zero.</p> 31 <!-- PASS AND FAIL CRITERIA ARE IN THE LIST BELOW --> 32 <ul> 33 <li>PASS if no red is visible on the page.</li> 34 <li>FAIL if any red is visible.</li> 35 </ul> 36 <!-- PLACE TEST CONTENT FROM HERE --> 37 <div id="reference"></div> 38 <div id="test"></div> 39 </body> 40 </html>