Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-scrollbars/scrollbar-color-dynamic-6.html
<!doctype html> <html class="reftest-wait"> <title>Dynamically set color on container and ensure scrollbars using currentcolor update</title> <link rel="author" title="Luke Warlow" href="mailto:luke@warlow.dev" /> <link rel="help" href="https://drafts.csswg.org/css-scrollbars" /> <link rel="match" href="scrollbar-color-dynamic-6-ref.html" /> <link rel="mismatch" href="scrollbar-color-dynamic-6-mis-ref.html" /> <script src="/common/reftest-wait.js"></script> <style> :root { scrollbar-color: currentColor currentColor; color: blue; } body { display: flex; flex-wrap: wrap; width: 200vw; height: 200vh; } .container { scrollbar-gutter: stable; overflow: auto; flex: 0 0; height: 200px; min-width: 200px; margin: 1px; padding: 0px; border: none; background: deepskyblue; scrollbar-color: currentColor currentColor; color: blue; } .content { height: 300px; width: 300px; background: red; } </style> <div class="container"> <div class="content"></div> </div> <script> requestAnimationFrame(() => requestAnimationFrame(() => { document.querySelector(".container").style.color = 'green'; takeScreenshot(); })); </script>
/css/css-scrollbars/scrollbar-color-dynamic-6-ref.html
<!doctype html> <style> :root { scrollbar-color: blue blue; } body { display: flex; flex-wrap: wrap; width: 200vw; height: 200vh; } .container { scrollbar-gutter: stable; flex: 0 0; overflow: auto; height: 200px; min-width: 200px; margin: 1px; padding: 0px; border: none; background: deepskyblue; scrollbar-color: green green; } .content { height: 300px; width: 300px; background: red; } </style> <div class="container"> <div class="content"></div> </div>