- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Jul 2021 16:48:18 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `accent-color background colors and contrast`, and agreed to the following: * `RESOLVED: Close issue, one color accent-color for now` <details><summary>The full IRC log of that discussion</summary> <fantasai> Topic: accent-color background colors and contrast<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/6159#issuecomment-877023330<br> <fantasai> scribenick: fantasai<br> <fantasai> ??: tldr of issue is, the spec, as written today, takes one color for accent-color<br> <fantasai> ??: form controls drawn with that color need to make sure they have enough contrast with other parts<br> <astearns> s/??/masonf/<br> <fantasai> masonf: Opened issue to discuss<br> <fantasai> masonf: Depending on how implemented, if you change accent-color slightly, the contrasting pieces can change abruptly from light to dark color to maintain contrast<br> <fantasai> masonf: Where we are now is that we would prefer to just close the issue<br> <fantasai> masonf: The discussion has been, should we allow the developer to spec more than one color<br> <fantasai> masonf: and we went around about that last year, and don't want to open can of worms again<br> <fantasai> masonf: we think it'd be better for dev to be able to do that, but happy to just close issue and leave behavior up to UA<br> <florian> q+<br> <fantasai> emilio: Idk where the disagreement is...<br> <fantasai> emilio: What Chrome implements is that the switch to dark foreground color based on ??<br> <fantasai> emilio: Firefox does something similar, but not sensitive to color-scheme<br> <fantasai> emilio: It's different in some places<br> <fantasai> emilio: So I think specifying foreground/background pair would make sense here<br> <fantasai> emilio: but ...<br> <fantasai> masonf: The way we're currently implementing this, we have a set colors for light mode and dark mode<br> <fantasai> masonf: we calculate contrast ratio, and choose the one with most contrast<br> <fantasai> masonf: It seems to work ok<br> <fantasai> masonf: does guarantee minimum level of contrast<br> <fantasai> masonf: I think allowing specifying foreground+background color would be better<br> <fantasai> masonf: but the consensus previously was to allow UA to innovate on form controls<br> <fantasai> masonf: and allowing author to spec 2 colors would hamper that<br> <fantasai> emilio: why doesn't specify one color create a problem. 2 colors is more flexible<br> <astearns> ack florian<br> <fantasai> florian: Agree I don't want to reopen the entire conversation<br> <fantasai> florian: would like to stick to 1 color<br> <fantasai> florian: Agree that UA should pick however it want<br> <fantasai> florian: We might want to add a note reminding UAs that they don't have to pick *the most* contrasting color<br> <fantasai> florian: They could take into account e.g. color-scheme<br> <fantasai> florian: as long as enough contrast, have a choice of colors<br> <lea> Totally agree that accent-color should be 1 color<br> <fantasai> florian: but reopening question of one vs two, would prefer to avoid<br> <lea> q?<br> <fantasai> emilio: 1 color is going to be a mess compat wise<br> <fantasai> hober: To summarize, disagreement from what I remember, was not about having 1 or 2 colors in general<br> <fantasai> hober: was about how exact to specify how those two colors would be used<br> <fantasai> hober: which one should be foreground, which background, which pieces of which form elements should get which colors<br> <fantasai> hober: other side wanted to leave to UA, might be different plaform conventions or form styling that would lend themselves to using colors differently<br> <fantasai> emilio: I think it's silly to get stuck with one color<br> <fantasai> emilio: But then seems disagreement wasn't about one vs two colors<br> <fantasai> florian: multiple hours of disagrement<br> <fantasai> fantasai: There *are* two colors available to the UA. If 'color' is appropriate, you *can* use it.<br> <fantasai> emilio: I don't think that would work.<br> <RRSAgent> I'm logging. Sorry, nothing found for 'link'<br> <fantasai> fantasai: We can't do this in general, because form controls have different conventions and some of them are a lot more complicated than checkboxes<br> <lea> q+ to say, is this trying to solve a non-problem? I understand the abruptness may be jarring if you are trying multiple colors like in these testcases, but as long as the UA selected colors have sufficient contrast, is it really a problem? Are people going to animate accent-color?<br> <fantasai> florian: This discussion has happened already.<br> <fantasai> astearns: Any objection to moving forward with one color<br> <fantasai> emilio: no. I just think it's a bad decision<br> <lea> q-<br> <fantasai> RESOLVED: Close issue, one color accent-color for now<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6159#issuecomment-880049675 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 July 2021 16:48:20 UTC