summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/root-scrollbar-with-fixed-background-ref.html
blob: 7b2a6103f3bf27494089f9d8b210d9f99e7f959c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html >
<title>View transitions: capture root element with scrollbar (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:khushalsagar@chromium.org">

<style>
#container {
  background: lightblue;
}
#first {
  width: 10px;
  background: linear-gradient(green, blue);
  height: 1000px;
}
body {
  margin: 0px;
  padding: 0px;
  filter: invert(1);
}
</style>

  <div id=container>
   <div id=first></div>
  </div>

<script>
  function scrollContainer() {
    document.documentElement.scrollTop = 500;
  }

  onload = scrollContainer();
</script>
</html>