[csswg-drafts] [css-color-5] Make it easier for authors to select the right WCAG level in color-contrast() (#6319)

LeaVerou has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-5] Make it easier for authors to select the right WCAG level in color-contrast() ==
The current grammar for the target contrast ratio is:

```
to [<number> | AA | AA-large | AAA | AAA-large]
```

This requires authors to know when to apply `*-large` and when not to. I was wondering if something like this would be better:

```
to [ <number> | [AA | AAA] [for <length>]? ]
```

Where `<length>` defaults to `1em`.

(Let's please not have a discussion about the potential future contrast algorithms in WCAG 3. We can cross that bridge when we get to it, and both syntaxes allow for future expansion)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6319 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 May 2021 14:57:29 UTC