RESOLVED FIXED 213563
First parseable <meta name=color-scheme> should win
https://bugs.webkit.org/show_bug.cgi?id=213563
Summary First parseable <meta name=color-scheme> should win
Simon Fraser (smfr)
Reported 2020-06-24 09:23:03 PDT
Per https://github.com/w3c/csswg-drafts/issues/3846, we should respect the first parseable <meta name=color-scheme>, not the last.
Attachments
Radar WebKit Bug Importer
Comment 1 2020-06-24 09:23:25 PDT
Anne van Kesteren
Comment 2 2023-09-04 09:34:38 PDT
We seem to handle dynamic changes badly in general: https://wpt.fyi/results/html/semantics/document-metadata/the-meta-element/color-scheme This also impacts a bunch of other <meta name> values based on how HTMLMetaElement::process is structured.
sideshowbarker
Comment 3 2023-09-15 09:27:46 PDT
EWS
Comment 4 2023-09-17 07:16:42 PDT
Committed 268064@main (7d7215513fb5): <https://commits.webkit.org/268064@main> Reviewed commits have been landed. Closing PR #17817 and removing active labels.
sideshowbarker
Comment 5 2023-09-17 08:15:30 PDT
(In reply to Anne van Kesteren from comment #2) > We seem to handle dynamic changes badly in general: > https://wpt.fyi/results/html/semantics/document-metadata/the-meta-element/ > color-scheme After the change in https://github.com/WebKit/WebKit/pull/17845 is reviewed and merged, WebKit will be passing all the tests in that WPT color-scheme subtree. > This also impacts a bunch of other <meta name> values based on how > HTMLMetaElement::process is structured. I can look into ensuring that HTMLMetaElement::process code conforms to the relevant spec requirements. I wonder if there are any <meta name> WPT tests WebKit is currently failing due to that code not being structured in a way which causes <meta name> processing to conform with the spec requirements.
Note You need to log in before you can comment on or make changes to this bug.