border-radius-011

Borders. border

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
If border-radius is zero, all corners are square.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Borders. border&ndash;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="reference/border-radius-011-ref.htm">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="If border-radius is zero, all corners are square.">
10         <style type="text/css">
11 		        	div
12             {
13         		width:200px;
14         		height: 100px;
15             }
16             #reference
17             {
18             	background: red;
19             	position: absolute;
20             	top: 100px;
21             	left: 30px;
22             }
23         	#test
24         	{
25         		position: absolute;
26         		border-radius: 0;
27         		background: white;
28         		top: 100px;
29         		left: 30px;
30         	}
31 
32      
33         </style>
34     </head>
35     <body>
36     	<p>
37 			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.
38 		</p>
39 		<!-- PASS AND FAIL CRITERIA ARE IN THE LIST BELOW -->
40 		<ul>
41 			<li>PASS if no red is visible on the page.</li>
42 			<li>FAIL if any red is visible.</li>
43 		</ul>
44         <!-- PLACE TEST CONTENT FROM HERE -->
45     	<div id="reference"></div>
46     	<div id="test"></div>
47     </body>
48 </html>