none-as-image-layer

None counts as an image layer

WeasyPrint

This browser

Assertion
'Background-image: none' counts as an image layer but draws nothing.

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: None counts as an image layer</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#the-background-image" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="'Background-image: none' counts as an image layer but draws nothing." name="assert">
 8         <style type="text/css">
 9             div
10             {
11                 margin: 10px;
12                 width: 250px;
13                 height: 250px;
14                 border: thick solid black;
15             }
16             #test
17             {
18                 background-image: url("support/blue_color.png"), none, url("support/green_color.png");
19                 background-repeat: no-repeat, repeat, no-repeat;
20                 background-position: 30px 30px, 60px 60px, 90px 90px;
21             }
22             #reference
23             {
24                 background-image: url("support/blue_color.png"), url("support/green_color.png");
25                 background-repeat: no-repeat, no-repeat;
26                 background-position: 30px 30px, 90px 90px;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if there is green on the page and contents of the black boxes look exactly the same.</p>
32         <table>
33             <tbody><tr>
34                 <td><div id="test"></div></td>
35                 <td><div id="reference"></div></td>
36             </tr>
37         </tbody></table>
38     
39 </body></html>