color-behind-images

Background color is drawn behind images

WeasyPrint

This browser

Assertion
Background color is drawn behind any number of background images.

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 is drawn behind images</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 drawn behind any number of background images." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 width: 250px;
12                 height: 250px;
13                 background-image: url("support/blue_color.png"), url("support/orange_color.png"), url("support/white_color.png");
14                 background-repeat: no-repeat;
15                 background-position: 30px 30px, 60px 60px, 90px 90px;
16                 background-color: black;
17             }
18         </style>
19     </head>
20     <body>
21         <p>Test passes if blue, orange and white boxes are visible on a larger black box.</p>
22         <div></div>
23     
24 </body></html>