- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Jan 2025 19:15:05 +0000
- To: public-css-archive@w3.org
`contrast-color( <color>, [ light <color> || dark <color> ] )`? With the `light` color defaulting to `white` and the `dark` defaulting to `black`. That way you don't have to memorize a particular color ordering, or depend on a lightness test in the UA that could fail if you provide only one color and it's sorta middling. (As you well know, the color contrast algos we have are *pretty bad* for middling colors.) This also makes it clearer what the role of the different colors are, I think, which should remove the need for a keyword to identify the "base" color. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11534#issuecomment-2622616756 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 January 2025 19:15:06 UTC