background-004

Background with attachment

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Background shorthand with attachment only sets its background-attachment subproperty. In such case, the other background subproperties are set to their initial values: 'background-image' is set to 'none', 'background-color' is set to transparent, 'background-repeat' is set to 'repeat', 'background-position' is set to '0% 0%.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Background with attachment</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#propdef-background">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties">
 8         <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-attachment">
 9         <link rel="match" href="reference/ref-nothing-below.htm">
10         <meta name="flags" content="">
11         <meta name="assert" content="Background shorthand with attachment only sets its background-attachment subproperty. In such case, the other background subproperties are set to their initial values: 'background-image' is set to 'none', 'background-color' is set to transparent, 'background-repeat' is set to 'repeat', 'background-position' is set to '0% 0%.">
12         <style type="text/css">
13             div
14             {
15                 background: fixed;
16                 height: 1in;
17                 width: 1in;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if there is nothing below.</p>
23         <div></div>
24     </body>
25 </html>