summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/root-scrollbar-with-fixed-background-ref.html
blob: a4010b5f2f8c593f3389b838669e42d80c6fd1b1 (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://github.com/WICG/view-transitions">
<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>