Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /forced-colors-mode/forced-colors-mode-54.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Forced colors mode - scrollbar-color
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
div {
scrollbar-color: green red;
}
</style>
<div id="div"></div>
<script>
test(function() {
let value = window.getComputedStyle(document.getElementById("div")).getPropertyValue("scrollbar-color");
assert_equals(value, "auto")
}, "Forced colors forces scrollbar-color to auto");
</script>