border-radius-applies-to-008

'Border-radius' applied to element with 'display' set to 'table-cell'.

WeasyPrint

This browser

Assertion
When 'border-radius' is applied to an element with 'displaye: table-cell' it produces rounded corners.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
 3         <title>CSS Test: 'Border-radius' applied to element with 'display' set to 'table-cell'.</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#border-radius" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="When 'border-radius' is applied to an element with 'displaye: table-cell' it produces rounded corners." name="assert">
 8         <style type="text/css">
 9             #table
10             {
11                 display: table;
12             }
13             #row
14             {
15                 display: table-row;
16             }
17             #cell
18             {
19                 border: solid green;
20                 border-radius: 10px;
21                 display: table-cell;
22                 height: 1in;
23                 width: 1in;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if there is a box with rounded corners below.</p>
29         <div id="table">
30             <div id="row">
31                 <div id="cell"></div>
32             </div>
33         </div>
34     
35 </body></html>