attachment-local-clipping-image-1

background-{attachment: local; clip: border-box; image}

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
dom

Source

 1 <!DOCTYPE html>
 2 <html><head><title>CSS Test: background-{attachment: local; clip: border-box; image}</title>
 3 <link href="reference/attachment-local-clipping-image-1-ref.htm" rel="match">
 4 <meta content="dom" name="flags">
 5 <link href="http://exyr.org/about/" rel="author" title="Simon Sapin">
 6 <link href="http://www.w3.org/TR/css3-background/#the-background-attachment" rel="help">
 7 <style>
 8 #outer {
 9   width: 200px;
10   height: 200px;
11   padding: 40px;
12   border: 10px dashed;
13   overflow: hidden;
14   background: url(aqua-yellow-32x32.png) local;
15   background-clip: border-box;
16   background-origin: padding-box;  /* Match the reference. */
17 }
18 #outer div {
19   height: 500px;
20 }
21 p {
22   margin-top: 20px;
23 }
24 </style>
25 </head><body><div id="outer">
26   <div>
27     <p>Test</p>
28   </div>
29 </div>
30 <script>
31 document.getElementById('outer').scrollTop = 15;
32 </script>
33 </body></html>