border-top-right-radius-007

Borders. Border-top-right-radius using two values: 20% 25px

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
To verify border-top-right-radius property set to two values with different units, works fine

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-top-right-radius using two values: 20% 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="border-top-right-radius-009.htm">
11         <meta name="flags" content="">
12         <meta name="assert" content="To verify border-top-right-radius property set to two values with different units, works fine">
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-top-right-radius: 20% 25px;
22         	}
23         /*  */
24         </style>
25 <!--
26         <script type="text/javascript" src="js/css3_test_helper.js"></script>
27 -->
28     </head>
29     <body>
30 		<p>
31 			There should be a box with a rounded top right corner.
32 		</p>
33 		 <!-- PASS AND FAIL CRITERIA ARE IN THE LIST BELOW -->
34         <ul>
35             <li>PASS if only top left corner is rounded.</li>
36             <li>FAIL if the output is not as expected.</li>
37         </ul>
38 
39          <!-- PLACE TEST CONTENT FROM HERE -->
40 
41     	<div id="test"></div>
42     	<p><br></p>
43 <!--
44     	<script type="text/javascript">
45         /* <![CDATA[ */
46         	var expectedBorderRadius = "20% 25px";
47 
48         	var testResult = check_CSS_property("border-top-right-radius", expectedBorderRadius);
49 
50         	/* if (testResult.pass)
51         	  // This portion of the code has been removed to ensure that the test case is not automated
52         	else {
53         		// This portion of the code has been removed to ensure that the test case is not automated
54           } */
55 
56           if (top.FrameEnabled)	top.fnLog(testResult);
57          /* ]]> */
58         </script>
59 -->
60     </body>
61 </html>