Bug 312191

Summary: Re-evaluate prefers-color-scheme of embedded document when embedder element color scheme changes.
Product: WebKit Reporter: Kiet Ho <kiet.ho>
Component: Layout and RenderingAssignee: Kiet Ho <kiet.ho>
Status: NEW    
Severity: Normal CC: bfulgham, kiet.ho, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=309611

Kiet Ho
Reported 2026-04-13 14:26:45 PDT
Bug 309611 will make prefers-color-scheme look at the color scheme of the embedder element and its ancestors. But currently we don't invalidate the style of embedded document when the color scheme of the embedder element changes. For example: <iframe style=color-scheme: dark> <iframe> <iframe> <html> If the outermost iframe changes its color-scheme, it seems WebKit doesn't pick up the change and re-evaluate prefers-color-scheme of the innermost document.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-04-13 14:26:53 PDT
Note You need to log in before you can comment on or make changes to this bug.