.box {
background: black;
color: #111;
wcag-at-least: AAA; // equals 4.5
}
The black and #111 does not satisfy the WCAG AAA test. The browser should ignore the color property and reselect a new color to enforce the contrast reach 4.5.
This is especially helpful when the website is themeable. It’s easily to create a not accessible theme in a complex website. It also useful when the text is on a image.
A real world example: https://github.com/material-theme/vsc-material-theme/issues/483