<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test: background-attachment: scroll; positioning area</title> <link href="reference/attachment-scroll-positioning-1-ref.xht" rel="match" /> <meta content="dom" name="flags" /> <link href="http://exyr.org/about/" rel="author" title="Simon Sapin" /> <link href="http://www.w3.org/TR/css3-background/#the-background-attachment" rel="help" /> <style> div { background: url(aqua-yellow-32x32.png) no-repeat 100px 100px; overflow: hidden; height: 200px; } p { padding-top: 100px; height: 500px; } </style> </head><body><div> <p>Test</p> </div> <script> document.getElementsByTagName('div')[0].scrollTop = 60; </script> </body></html>