<!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:[email protected]" />
<link rel="help" href="https://drafts.csswg.org/css-scrollbars-1/#color-compat" />
<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>