summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html')
-rw-r--r--testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html b/testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html
new file mode 100644
index 0000000000..42648850b4
--- /dev/null
+++ b/testing/web-platform/tests/css/css-scrollbars/scrollbar-color-dynamic-5.html
@@ -0,0 +1,48 @@
+<!doctype html>
+<html class="reftest-wait">
+<title>Dynamically set color 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-5-ref.html" />
+<link rel="mismatch" href="scrollbar-color-dynamic-5-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;
+ }
+
+ .content {
+ height: 300px;
+ width: 300px;
+ background: red;
+ }
+</style>
+<div class="container">
+ <div class="content"></div>
+</div>
+<script>
+ requestAnimationFrame(() => requestAnimationFrame(() => {
+ document.documentElement.style.color = 'green';
+
+ takeScreenshot();
+ }));
+</script>