From 005553d64a4c1f08788095ac124bdd2cb69d94e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 28 Oct 2021 10:27:19 +0000 Subject: [PATCH] Bug 1736051 [wpt PR 31271] - Assert that color-scheme meta tag doesn'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 https://github.com/whatwg/html/pull/7226. -- wpt-commits: 13a5f1e14ff1ad575a46d03ea73c4f019f6e6036 wpt-pr: 31271 --- .../meta-color-scheme-presentational-hint.html | 15 --------------- .../support/compute-root-color-scheme.js | 1 + 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-presentational-hint.html diff --git a/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-presentational-hint.html b/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-presentational-hint.html deleted file mode 100644 index e5dc75a911c8f..0000000000000 --- a/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-presentational-hint.html +++ /dev/null @@ -1,15 +0,0 @@ - -Meta color-scheme - presentational hint - - - - - - - diff --git a/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/support/compute-root-color-scheme.js b/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/support/compute-root-color-scheme.js index 16de8485c046c..74cbf895ced3d 100644 --- a/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/support/compute-root-color-scheme.js +++ b/testing/web-platform/tests/html/semantics/document-metadata/the-meta-element/color-scheme/support/compute-root-color-scheme.js @@ -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); }