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 Rendering | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/174687101>