css-border-radius-001-ref.html (941B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS border-radius Test</title> 5 <style type="text/css"> 6 .blueSquare{ 7 position: absolute; 8 top:50px; 9 left:50px; 10 width: 100px; 11 height: 100px; 12 background-color:rgba(0, 0, 255, 1); 13 } 14 .greenSquare { 15 position: absolute; 16 top:50px; 17 left:50px; 18 width: 100px; 19 height: 100px; 20 /*border-radius: 50%;*/ 21 background:url(../support/y.png); 22 } 23 .container { 24 position: absolute; 25 } 26 </style> 27 </head> 28 <body> 29 <p>The test passes if the green circle is inscribed in the blue square.</p> 30 <div class="container"> 31 <!-- This is the square that has a inscribed circle if the test passes --> 32 <div id="blue" class="blueSquare"></div> 33 <!-- This is the square being tested with the radius--> 34 <div id="green" class="greenSquare"></div> 35 </div> 36 </body> 37 </html>