- From: weinig via GitHub <sysbot+gh@w3.org>
- Date: Sun, 28 Feb 2021 18:59:20 +0000
- To: public-css-archive@w3.org
weinig has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-color-5] color-contrast() grammar should specify that the second list of colors requires at least two colors ==
In the current CSS Color 5 draft's color-contrast() function, https://drafts.csswg.org/css-color-5/#colorcontrast, the text and grammar don't agree on how many colors are required after the `vs` keyword. The text states:
> This function takes, firstly, a single color (typically a background, but not necessarily), and then second, a list **of two or more** colors;
where as the grammar indicates one or more is fine:
> color-contrast() = color-contrast( \<color\> vs \<color\># )
as the hash mark on its own means "one or more times" - https://drafts.csswg.org/css-values-4/#mult-comma.
I believe the way to specify a lower bound would be
> color-contrast() = color-contrast( \<color\> vs \<color\>#{2,} )
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6055 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 28 February 2021 18:59:21 UTC