summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-8.tentative.html
blob: 4926fadaca1665103b0a678c47f4ebb7c801b822 (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
<!doctype html>
<html class="reftest-wait">
<title>Dynamically set scrollbar-colors when starts ::-webkit-scrollbar and ensure scrollbars update</title>
<link rel="author" title="Luke Warlow" href="mailto:lwarlow@igalia.com" />
<link rel="help" href="https://drafts.csswg.org/css-scrollbars" />
<link rel="match" href="scrollbar-color-dynamic-8-ref.html" />
<script src="/common/reftest-wait.js"></script>
<style>
  :root::-webkit-scrollbar {
    background: pink;
  }
  :root::-webkit-scrollbar-thumb {
    background: orange;
  }

  body {
    display: flex;
    flex-wrap: wrap;
    width: 200vw;
    height: 200vh;
  }
</style>
<script>
  requestAnimationFrame(() => requestAnimationFrame(() => {
    document.documentElement.style.scrollbarColor = 'blue green';

    takeScreenshot();
  }));
</script>