Skip to content

Commit

Permalink
Bug 1736051 [wpt PR 31271] - Assert that color-scheme meta tag doesn'…
Browse files Browse the repository at this point in the history
…t create a pres hint., a=testonly

Automatic update from web-platform-tests
Assert that color-scheme meta tag doesn't create a pres hint

This tests the spec change in whatwg/html#7226.
--

wpt-commits: 13a5f1e14ff1ad575a46d03ea73c4f019f6e6036
wpt-pr: 31271
  • Loading branch information
emilio authored and moz-wptsync-bot committed Oct 29, 2021
1 parent 366efc2 commit 005553d
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 005553d

Please sign in to comment.