attachment-local-clipping-image-6

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

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: content-box; image}; border-radius</title>
 3 <link href="reference/attachment-local-clipping-image-6-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 double;
13   overflow: hidden;
14   border-radius: 50%;
15   background: url(aqua-yellow-32x32.png) local content-box;
16 }
17 #outer div {
18   height: 500px;
19 }
20 p {
21   margin-top: 20px;
22 }
23 </style>
24 </head><body><div id="outer">
25   <div>
26     <p>Test</p>
27   </div>
28 </div>
29 <script>
30 document.getElementById('outer').scrollTop = 15;
31 </script>
32 </body></html>