border-radius-010

Borders. border

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
To verify inherit feature works, when it is assigned to border-radius

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 using "inherit"</title>
 5         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 6         <meta http-equiv="Content-Style-Type" content="text/css">
 7         <meta http-equiv="Content-Script-Type" content="text/javascript">
 8         <link rel="author" title="Nokia" href="http://www.nokia.com/">
 9         <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-radius">
10         <link rel="match" href="reference/border-radius-010-ref.htm">
11         <meta name="flags" content="">
12         <meta name="assert" content="To verify inherit feature works, when it is assigned to border-radius">
13         <style type="text/css">
14         /*  */
15         	body
16         	{
17         		border-top-left-radius: 20% 25px;
18         		border-bottom-right-radius: 20pt 3em;
19         	}
20         	div
21             {
22         		border:2px solid #a1a1a1;
23         		background:#dddddd;
24         		width:200px;
25         		height: 100px;
26         		border-radius: inherit;
27         	}
28 			#reference
29 			{
30 			    border-top-left-radius: 20% 25px;
31 				border-top-right-radius: 0;
32 				border-bottom-right-radius: 20pt 3em;
33 				border-bottom-left-radius: 0;
34 			}
35         /*  */
36         </style>
37 <!--
38         <script type="text/javascript" src="js/css3_test_helper.js"></script>
39 -->
40     </head>
41     <body>
42         <p>
43             There should be two identical boxes, each with rounded corners at the top left and bottom right only.
44 		</p>
45         <ul>
46             <li>PASS if the two boxes below are the same and only top left and bottom right corners are rounded.</li>
47             <li>FAIL if the output is not as expected.</li>
48         </ul>
49 
50         <!-- PLACE TEST CONTENT FROM HERE -->
51     	<div id="test"></div>
52     	<p><br></p>
53 		<div id="reference"></div>
54 <!--
55     	<script type="text/javascript">
56          /* <![CDATA[ */
57         	var borders = new Array("border-top-left-radius", "border-top-right-radius",
58     		                          "border-bottom-right-radius", "border-bottom-left-radius");
59         	var expectedValues = new Array("20% 25px", "0px", "26px 48px", "0px");
60 
61         	var testResult = check_Multiple_CSS_property(borders, expectedValues);
62 
63         	/* if (testResult.pass)
64 				  // This portion of the code has been removed to ensure that the test case is not automated
65 				else {
66 					// This portion of the code has been removed to ensure that the test case is not automated
67 			  } */
68 
69           if (top.FrameEnabled)	top.fnLog(testResult);
70         /* ]]> */
71         </script>
72 -->
73     </body>
74 </html>