Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-remove-head.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Remove head with meta color-scheme</title>
<meta name="color-scheme" content="dark">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/compute-root-color-scheme.js"></script>
<!--
NOTE: This test assumes that the browser's default color-scheme is "light",
-->
<body></body>
<script>
assert_root_color_scheme("dark", "Meta color-scheme applies.");
document.head.remove();
assert_root_color_scheme("light", "Initial value after removing head including meta color-scheme.");
</script>