Status: PASS | Duration: 4ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-scrollbars/scrollbar-color-dynamic-8.html
<!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-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>
/css/css-scrollbars/scrollbar-color-dynamic-8-ref.html
<!doctype html> <style> :root { scrollbar-color: blue green; } body { display: flex; flex-wrap: wrap; width: 200vw; height: 200vh; } </style>