dequelabs / dequelabs/axe-core
Axe fails parsing (OK)LAB & (OK)LCH colors containing 'none' keyword
Open
color contrast
core
high
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 17
Description
The CSS color functions `lab()`, `oklab()`, `lch()` and `oklch()` can contain the special `none` keyword as a "missing color component" which is treated special when interpolating colors, while simply treated as `0` otherwise ([see specification](https://drafts.csswg.org/css-color-4/#missing)). Axe fails parsing such colors.
```css
color: oklch(0 none none);
color: lch(none 0 none);
color: oklab(0 none none);
color: lab(0 none none);
```
Contributor guide
Assessment
This issue has not been assessed yet.