background-attachment-010

Background-attachment set to fixed in paged media

WeasyPrint

This browser

Flags
image, paged
Assertion
Fixed backgrounds position with respect to their page box. All pages will have the background visible.

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-attachment set to fixed in paged media</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#background-properties">
 7         <meta name="flags" content="image paged">
 8         <meta name="assert" content="Fixed backgrounds position with respect to their page box. All pages will have the background visible.">
 9         <style type="text/css">
10             body
11             {
12                 background-repeat: no-repeat;
13                 background-attachment: fixed;
14                 background-image: url("support/blue96x96.png");
15                 background-position: 0 2in;
16                 height: 20in;
17             }
18         </style>
19     </head>
20     <body>
21         <p>PREREQUISITE: Switch to paged media view and enable printing background images.</p>
22         <p>Test passes if there are multiple pages and there is a blue box on all pages.</p>
23     </body>
24 </html>