border-radius-005

Borders. border

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
To verify border-radius property set with value using slash, works as expected

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 slash: 50px 15px 40px / 20px 25px</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-005-ref.htm">
11         <meta name="flags" content="">
12         <meta name="assert" content="To verify border-radius property set with value using slash, works as expected">
13         <style type="text/css">
14         /*  */
15         	div
16             {
17         		border:2px solid #a1a1a1;
18         		background:#dddddd;
19         		width:200px;
20         		height: 100px;
21         		border-radius: 50px 15px 40px / 20px 25px;
22         	}
23 			#reference
24 			{
25 			    border-top-left-radius: 50px 20px;
26 				border-top-right-radius: 15px 25px;
27 				border-bottom-right-radius: 40px 20px;
28 				border-bottom-left-radius: 15px 25px;
29 			}
30          /*  */
31         </style>
32 <!--
33         <script type="text/javascript" src="js/css3_test_helper.js"></script>
34 -->
35     </head>
36     <body>
37         <p>
38             There should be two identical boxes, each with 4 rounded corners.
39 		</p>
40         <ul>
41             <li>PASS if the two boxes below are the same and all 4 corners are rounded.</li>
42             <li>FAIL if the output is not as expected.</li>
43         </ul>
44 
45         <!-- PLACE TEST CONTENT FROM HERE -->
46     	<div id="test"></div>
47        	<p><br></p>
48 		<div id="reference"></div>
49 <!--
50     	<script type="text/javascript">
51         /* <![CDATA[ */
52     		var borders = new Array("border-top-left-radius", "border-top-right-radius",
53     		                          "border-bottom-right-radius", "border-bottom-left-radius");
54         	var expectedValues = new Array("50px 20px", "15px 25px", "40px 20px", "15px 25px");
55          	var testResult = check_Multiple_CSS_property(borders, expectedValues);
56         	/* if (testResult.pass)
57 				  // This portion of the code has been removed to ensure that the test case is not automated
58 				else {
59 					// This portion of the code has been removed to ensure that the test case is not automated
60 			  } */
61 
62           if (top.FrameEnabled)	top.fnLog(testResult);
63         /* ]]> */
64         </script>
65 -->
66     </body>
67 </html>