summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom-view/add-background-attachment-fixed-during-smooth-scroll-ref.html
blob: 8bcbf4110267dca94150e28c61fdb1783b73df08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<title>Add background-attachment:fixed during smooth scroll</title>
<style>
#container {
  width: 200px;
  height: 200px;
  overflow: scroll;
  background: linear-gradient(green, blue);
  background-attachment: fixed;
}
#content {
  width: 7500px;
  height: 7500px;
}
</style>
<div id="container">
  <div id="content">Content</div>
</div>
<script>
container.scrollTop = 6000;
</script>