- From: Adam Argyle via GitHub <sysbot+gh@w3.org>
- Date: Mon, 04 Mar 2024 22:39:52 +0000
- To: public-css-archive@w3.org
argyleink has just created a new issue for https://github.com/w3c/csswg-drafts: == `css-color` unspecified target contrast ratios with `contrast-color()` should use the users preference == https://drafts.csswg.org/css-color-6/ The general goal of `contrast-color()` is to provide legible color pairings for users and make it "easy" for authors. In that ethos, I think the function could use the user's [contrast preference](https://www.w3.org/TR/mediaqueries-5/#prefers-contrast) when resolving a color. This would prevent code duplication if authors were expected to repeat the `contrast-color()` function within media queries, passing explicit target values within the queries. This issue/proposal wants to make the user's contrast preference easier to implement for authors, and also make the default function value the most dynamic and appropriate value for users. tldr; the default for authors would be to let the browser figure it out for each user, not a default of authors needing to know what scores match each user preference. Quick user story: A user prefers contrast `more` in their OS settings, `contrast-color()` defaults to using this preference and resolves a value for them to a contrast target of AAA/7. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10029 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 4 March 2024 22:39:53 UTC