summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/attachment-local-positioning-1.html
blob: c414e2096bc215ccc0b16b99c8f7c962fbde2f35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<title>background-attachment: scroll</title>
<style>
div {
  background: url(aqua-yellow-32x32.png) no-repeat 100px 100px;
  overflow: hidden;
  height: 200px;
}
p {
  padding-top: 100px;
  height: 500px;
}
</style>
<div>
  <p><img src=blue-32x32.png></p>
</div>
<script>
document.getElementsByTagName('div')[0].scrollTop = 60;
</script>