- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 15 Sep 2022 17:45:33 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Contrast Ratio`. <details><summary>The full IRC log of that discussion</summary> <fantasai> Subtopic: Contrast Ratio<br> <chris> github: https://github.com/w3c/csswg-drafts/issues/7730<br> <fantasai> matatk: not proposing to resolve all issues right now<br> <fantasai> ... wanted to use our F2F time to get background<br> <fantasai> ... what's the use case for this function?<br> <Rossen_> ack chris<br> <fantasai> chris: Dropped link to the issue<br> <fantasai> ... where I gave an introduction to what we want to do here<br> <fantasai> ... if you just have a single stylesheet, no variables, just light mode, don't need anything special<br> <fantasai> ... everything is constant<br> <fantasai> ... but if you have theming and customization, and stylesheets merged from multiple teams<br> <fantasai> ... it will work out for you<br> <fantasai> ... previously, this was all done by eye<br> <fantasai> ... they chose contrast by eye, threw through a checker to be sure<br> <argyle> also, user's bring preferences to the page: prefers-contrast (less, more, etc)<br> <fantasai> ... here, not necessarily have human intervention<br> <fantasai> ... but need to know that it will check out<br> <fantasai> matatk: I thought you as the author still have to give colors to choose from and isn't that deterministic<br> <fantasai> ... but you said it would be from variables<br> <fantasai> ... wouldn't you still have to know which custom properties would be applicable?<br> <fantasai> chris: yes, and the list that you give is in priority order<br> <fantasai> ... also one of the open issues is allowing that list to be empty<br> <fantasai> ... and if empty, it gives you a color: either white or black, whichever more contrasty<br> <iank_> note - something these lists colors are generated from a user provided image for example.<br> <fantasai> ... but if you want to pick a target contrast, then willl look for that<br> <fantasai> chris: other big issue open atm is WCAG2 has a contrast algorithm which gives a lot of false positives and false negatives<br> <fantasai> ... and we want to do btter<br> <fantasai> ... I've implemented a bunch of contrast algos in JS so ppl can play with it<br> <chris> https://colorjs.io/docs/contrast.html<br> <fantasai> matatk: As side project, I had to write a functio nthat gives white or black from bgcolor<br> <fantasai> ... so that's very helpful<br> <fantasai> ... we'll follow the discussions and offer what advice we can<br> <fantasai> janina: WCAG's color contrast rule is problematic in many ways<br> <fantasai> ... including that some ppl don't do well with very high contrast, as you noted<br> <fantasai> chris: It used to point to obsolete draft of sRGB, now it's updated<br> <fantasai> janina: Plan to be smarter in 3, but quite a ways out, so time to get it smarter<br> <fantasai> ... would be willing cooperators in that<br> <Rossen_> q?<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7730#issuecomment-1248414495 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 15 September 2022 17:45:35 UTC