wpt / css / css-scrollbars / scrollbar-color-dynamic-2.html

Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-scrollbars/scrollbar-color-dynamic-2.html

<!doctype html>
<html class="reftest-wait">
<title>Dynamically set scrollbar-color and ensure overflow scroll scrollbars update</title>
<link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" />
<link rel="help" href="https://drafts.csswg.org/css-scrollbars/#valdef-scrollbar-color-auto" />
<link rel="match" href="scrollbar-color-dynamic-2-ref.html" />
<link rel="mismatch" href="scrollbar-color-dynamic-2-mis-ref.html" />
<script src="/common/reftest-wait.js"></script>
<style>
  :root {
    scrollbar-color: red yellow;
  }
  body {
    display: flex;
    flex-wrap: wrap;
    overflow: scroll;
  }
  .container {
    scrollbar-gutter: stable;
    overflow: scroll;
    flex: 0 0;
    height: 200px;
    min-width: 200px;
    margin: 1px;
    padding: 0px;
    border: none;
    background: deepskyblue;
  }
</style>
<div class="container"></div>
<script>
  requestAnimationFrame(() => requestAnimationFrame(() => {
    document.documentElement.style.scrollbarColor = 'blue green';

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

/css/css-scrollbars/scrollbar-color-dynamic-2-ref.html

<!doctype html>
<style>
  :root {
    scrollbar-color: blue green;
  }
  body {
    display: flex;
    flex-wrap: wrap;
    overflow: scroll;
  }
  .container {
    scrollbar-gutter: stable;
    overflow: scroll;
    flex: 0 0;
    height: 200px;
    min-width: 200px;
    margin: 1px;
    padding: 0px;
    border: none;
    background: deepskyblue;
  }
</style>
<div class="container"></div>