css-border-radius-001

CSS border-radius Test

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS border-radius Test</title>
 4     <link href="mailto:weisong4413@126.com" rel="author" title="tmd">
 5     <link href="http://www.w3.org/TR/css3-background/#the-border-radius" rel="help">
 6     <link href="reference/css-border-radius-ref-001.htm" rel="match">
 7     <meta content="" name="assert">
 8     <meta content="border-radius" name="flag">
 9     <style type="text/css">
10 		.redSquare{
11             position: absolute;
12 			top:50px;
13 			left:50px;
14             width: 100px;
15             height: 100px;
16 			background-color:rgba(255, 0, 0, 1);
17 		}
18         .greenSquare {
19             position: absolute;
20 			top:50px;
21 			left:50px;
22             width: 100px;
23             height: 100px;
24 			border-radius: 50%;
25 			background-color:rgba(0, 255, 0, 1);
26         }
27         .container {
28             position: absolute;
29         }
30     </style>
31 </head>
32 <body>
33     <p>The test passes if you the green is inscribed circle of the red square.</p>
34     <div class="container">
35         <!-- This is the square that has a inscribed circle if the test passes -->
36 		<div class="redSquare" id="red"></div>
37         <!-- This is the square being tested with the radius-->
38 		<div class="greenSquare" id="green"></div>
39     </div>
40 
41 </body></html>