background_color_padding_box

Background color clipped to 'padding-box'

WeasyPrint

This browser

Assertion
Background color is clipped according to the 'background-clip' value associated with the bottom-most background image.

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 clipped to 'padding-box'</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#the-background-color" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="Background color is clipped according to the 'background-clip' value associated with the bottom-most background image." name="assert">
 8         <style type="text/css">
 9             div div
10             {
11                 width: 250px;
12                 height: 250px;
13                 border: 10px dashed purple;
14                 padding: 10px;
15                 background-image: url("support/blue_color.png"), url("support/orange_color.png"), url("support/white_color.png");
16                 background-repeat: no-repeat;
17                 background-clip: border-box, border-box, padding-box;
18                 background-position: 30px 30px, 60px 60px, 90px 90px;
19                 background-color: black;
20             }
21             #parent
22             {
23                 width: 290px;
24                 background: green;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if green is visible on the page.</p>
30         <div id="parent">
31             <div></div>
32          </div>
33     
34 
35 </body></html>