border-top-right-radius-009

Borders. Border-top-right-radius using "inherit"

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
To verify inherit feature works, when it is assigned to border-top-right-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-top-right-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="border-top-right-radius-007.htm">
11         <meta name="flags" content="">
12         <meta name="assert" content="To verify inherit feature works, when it is assigned to border-top-right-radius.">
13         <style type="text/css">
14         /*  */
15         	body
16         	{
17         		border-top-right-radius: 20% 25px;
18         	}
19         	div
20           {
21         		border:2px solid #a1a1a1;
22         		background:#dddddd;
23         		width:200px;
24         		height: 100px;
25         		border-top-right-radius: inherit;
26         	}
27          /*  */
28         </style>
29 <!--
30         <script type="text/javascript" src="js/css3_test_helper.js"></script>
31 -->
32     </head>
33     <body>
34 		<p>
35 			There should be a box with a rounded top right corner.
36 		</p>
37 		 <!-- PASS AND FAIL CRITERIA ARE IN THE LIST BELOW -->
38         <ul>
39             <li>PASS if only top left corner is rounded.</li>
40             <li>FAIL if the output is not as expected.</li>
41         </ul>
42 
43          <!-- PLACE TEST CONTENT FROM HERE -->
44 
45     	<div id="test"></div>
46     	<p><br></p>
47 <!--
48     	<script type="text/javascript">
49          /* <![CDATA[ */
50         	var expectedBorderRadius = "20% 25px";
51 
52         	var testResult = check_CSS_property("border-top-right-radius", expectedBorderRadius);
53 
54         	/* if (testResult.pass)
55         	  // This portion of the code has been removed to ensure that the test case is not automated
56         	else {
57         		// This portion of the code has been removed to ensure that the test case is not automated
58           } */
59 
60           if (top.FrameEnabled)	top.fnLog(testResult);
61         /* ]]> */
62         </script>
63 -->
64     </body>
65 </html>