attachment-local-clipping-image-2

background-{attachment: local; clip: padding-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: padding-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 padding-box;
15 }
16 #outer div {
17   height: 500px;
18 }
19 p {
20   margin-top: 20px;
21 }
22 </style>
23 </head><body><div id="outer">
24   <div>
25     <p>Test</p>
26   </div>
27 </div>
28 <script>
29 document.getElementById('outer').scrollTop = 15;
30 </script>
31 </body></html>