attachment-local-clipping-image-4

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