Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!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="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>