Skip to content

Commit

Permalink
Assert that color-scheme meta tag doesn't create a pres hint.
Browse files Browse the repository at this point in the history
This tests the spec change in whatwg/html#7226.
  • Loading branch information
emilio committed Oct 15, 2021
1 parent 705c808 commit 384ee17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ function assert_root_color_scheme(expected_used_scheme, description) {

test(() => {
assert_equals(get_used_root_color_scheme(), expected_used_scheme);
assert_equals(getComputedStyle(document.documentElement).colorScheme, "normal", "Root element's color-scheme should be 'normal'");
}, description);
}

0 comments on commit 384ee17

Please sign in to comment.