border-top-left-radius-values-002.htm (1299B)
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-top-left-radius' with one value.</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#the-border-radius" /> 7 <meta name="assert" content="'Border-top-left-radius' with an omitted second value has the vertical radius of the rounded corner equal to its horizontal radius." /> 8 <style type="text/css"> 9 #reference 10 { 11 height: 288px; 12 width: 384px; 13 border: 2px solid red; 14 border-top-left-radius: 50px 50px; 15 } 16 #test 17 { 18 margin-top: -292px; 19 height: 288px; 20 width: 384px; 21 border: 2px solid black; 22 border-top-left-radius: 50px; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if the top-left corner of the box has a rounded corner and there is no red visible on the page.</p> 28 <div id ="reference"></div> 29 <div id="test"></div> 30 </body> 31 </html>