1 <!DOCTYPE html>
2 <html><head><title>CSS Test: background-{attachment: local; clip: border-box; color}</title>
3 <link href="reference/attachment-local-clipping-color-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: green local border-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>