Re: [csswg-drafts] [css-mediaqueries] Clarify propagated preferred color-scheme on elements with color-scheme: normal and no color-scheme meta tag (#7526)

This area is complex and I would like to avoid adding special-cases to the svg embedding case. It would be ideal if we could resolve the differences with svg vs iframe embedding too.

For backwards compatibility reasons (e.g., pages would become unreadable with a black background), we cannot let `color-scheme` default to the preferred color scheme, so maybe it is best to disentangle the `prefers-color-scheme` media query and `color-scheme`? For example, `color-scheme` could just control browser UX (described [here](https://drafts.csswg.org/css-color-adjust/#color-scheme-effect)), and `prefers-color-scheme` could just return the OS dark mode setting or other user-set value. In this model, there are no differences between content in iframes vs svg. Embedded svg content with `prefers-color-scheme` media queries would match the global setting.

-- 
GitHub Notification of comment by progers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7526#issuecomment-1192940572 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 July 2022 21:16:15 UTC