Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-color-adjust/parsing/color-scheme-computed.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Color Adjust: getComputedStyle for color-scheme</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value("color-scheme", "normal");
test_computed_value("color-scheme", "light dark");
test_computed_value("color-scheme", "dark light");
test_computed_value("color-scheme", "light unknown");
test_computed_value("color-scheme", "only light", "light only");
test_computed_value("color-scheme", "only light dark", "light dark only");
test_computed_value("color-scheme", "light light");
test_computed_value("color-scheme", "light only");
test_computed_value("color-scheme", "none");
// reserved and css-wide keywords.
test_computed_value("color-scheme", "initial", "normal");
test_computed_value("color-scheme", "inherit", "normal");
test_computed_value("color-scheme", "unset", "normal");
test_computed_value("color-scheme", "revert", "normal");
</script>