background-color-applied-to-rounded-inline-element

'Background-color' applied to a rounded inline element

WeasyPrint

This browser

Assertion
'Background-color' is clipped according to the 'background-clip' property in an inline element.

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: 'Background-color' applied to a rounded inline element</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#background-color" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="'Background-color' is clipped according to the 'background-clip' property in an inline element." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 border-radius: 20px;
12                 background-color: orange;
13                 background-clip: border-box;
14                 color: orange;
15                 padding: 15px;
16                 display: inline;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if there is an orange box with rounded corners below.</p>
22         <div>Filler Text</div>
23     
24 
25 </body></html>