Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-color-adjust] Properties to control backplates? #5038

Open
chrishtr opened this issue May 1, 2020 · 3 comments
Open

[css-color-adjust] Properties to control backplates? #5038

chrishtr opened this issue May 1, 2020 · 3 comments

Comments

@chrishtr
Copy link
Contributor

chrishtr commented May 1, 2020

The Chromium implementation of forced-colors mode puts a backplate behind all text [1] so that readability of the text is guaranteed.

When a browser is in dark mode (either via a forced dark mode, or developer opt-in), there are cases where backplates are desired. For example, if there is text meant to overlay an image, contrast between the text and image may not be good enough; developers may also appreciate the convenience of a UA-supplied backplate.

Proposal: have a CSS property that controls whether the backplate is present. Maybe user agents could be allowed by default to apply backplates, and color-adjust: exact would opt-out? This would prioritize usability of the page over developer styling, which sounds right to me.

@minorninth

[1] See this explainer for screenshots and details.

@tabatkins
Copy link
Member

Proposing we push this to level 2, as it seems useful, but not worth delaying CR for level 1 on designing this.

@tabatkins
Copy link
Member

@chrishtr Are you okay with us pushing this to level 2?

@chrishtr
Copy link
Contributor Author

chrishtr commented Nov 9, 2020

I'm ok with that. Thanks for asking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants