Bug 261654

Summary: Re-run <meta name=color-scheme> processing when name attribute or content attribute changes
Product: WebKit Reporter: sideshowbarker <mike>
Component: DOMAssignee: sideshowbarker <mike>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description sideshowbarker 2023-09-17 08:08:45 PDT
At https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names:attr-meta-name-15 the HTML spec requires that:

> [if] existing meta elements have their name or content attributes changed, user agents must re-run the above algorithm

…where “above algorithm” is the algorithm at https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names:page's-supported-color-schemes-2

However, WebKit currently doesn’t conform to that requirement, which causes two of the tests at https://wpt.fyi/results/html/semantics/document-metadata/the-meta-element/color-scheme/meta-color-scheme-attribute-changes.html to fail in Safari.
Comment 1 sideshowbarker 2023-09-17 08:10:08 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17845
Comment 2 Radar WebKit Bug Importer 2023-09-24 08:09:13 PDT
<rdar://problem/115958450>
Comment 3 EWS 2023-11-01 16:35:09 PDT
Committed 270092@main (3afefcc5f934): <https://commits.webkit.org/270092@main>

Reviewed commits have been landed. Closing PR #17845 and removing active labels.