You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we know that WCAG 2.1 has huge known problems and WCAG 3.0 isn't quite ready yet, we should not ship a color-contrast() that mandates use of a broken algorithm.
Instead, the algorithm should be explicitly specified with either syntax.
Since passing levels depend on the algorithm and 4.5 in WCAG 2.1 may not be the same as 4.5 in another algorithm, I'd suggest it's specified via functions, e.g. color-contrast(white vs yellow, blue to wcag2(4.5)) or color-contrast(white vs yellow, blue to wcag2(AA))