attachment-local-positioning-5

background-{attachment: local; origin: content-box}; positioning area

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; origin: content-box}; positioning area</title>
 3 <link href="reference/attachment-local-positioning-5-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 div {
 9   background: url(aqua-yellow-32x32.png) local no-repeat content-box;
10   overflow: hidden;
11   height: 200px;
12   padding: 40px 30px;
13 }
14 p {
15   padding-top: 100px;
16   height: 500px;
17 }
18 </style>
19 </head><body><div>
20   <p>Test</p>
21 </div>
22 <script>
23 document.getElementsByTagName('div')[0].scrollTop = 15;
24 </script>
25 </body></html>