8000 [css-color-adjust-1] `color-scheme` should affect embedded iframes · Issue #4772 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-color-adjust-1] color-scheme should affect embedded iframes #4772

@tomayac

Description

@tomayac

When a site contains iframes that specify their color-scheme either via the meta tag or the CSS property, the default text color changes, however, the background color is transparent, see this demo and note how the screenshot (Chrome Canary 82 left, Safari Tech Preview 100 right) shows the disappearing heading (white on white):

Screen Shot 2020-02-12 at 10 15 16

(Chrome doesn't implement form element darkening yet.)

If, however, one loads one of the embedded iframes in isolation (demo), things work as expected and the background is dark (again Chrome left, Safari right):

Screen Shot 2020-02-13 at 08 56 20

As discussed with @chrishtr in an offline thread, color-scheme should arguably also affect embedded iframes and render them as if they were the root document.

Spec links:

CC: @lilles

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0