Skip to content

[css-color-adjust-1] Limits on the only color scheme keyword #3881

Closed
@AmeliaBR

Description

@AmeliaBR

Regarding the color-scheme property and its associated meta tag.

In the discussion of #3807, there was a lot of debate about acceptable use of the only keyword in the property. We made a temporary resolution to adopt the property in the Editor's Draft, with an open issue. There's currently an inline issue in the spec, but this is opening it up for continued discussion.

The story so far:

The only keyword, as defined in the original proposal, allows website authors to override the user preference expressed in browser/OS settings, and instead directly ask the user agent for a specific color scheme.

Some WG members are concerned about allowing authors to override user preferences. Other WG members are concerned that authors will assume that an only request for a specific color scheme would always be respected, and won't design for user agents that don't have that color scheme (e.g., dark) available.

The compromise currently in the spec is to only allow only in combination with light, and to require user agents to have a light theme available.

I'll leave a separate comment with my opinions.

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