APCA constants - consistent naming #645
Labels
bug
Something isn't working with docs
migration: guidelines
Issues that apply to guidelines
Subgroup: Visual Contrast
Directly Related to Visual Contrast of Text SubGroup
(I would raise an issue on the constants in WCAG 3, but they haven't been added yet until #570 is merged)
The problem
The Current APCA Constants ( 0.0.98G - W3 last changed Feb 15, 2021 ) lists constants, but gives no equations.
The APCA Base Math (sRGB) lists constants and equations, but the names used are not the same and the set of constants is not exactly equivalent.
When implementing, I mainly used the value of the constants to check equivalence (which kind of defeats the point of named constants) but clearly this fails if two constants have the same value and the mapping is not immediately obvious.
Correspondences
The correspondences seem to be:
Suggested fixes
Also
In addition, please be aware that the chosen 5-digit chromaticity values for D65 differ slightly from the 4-digit ones used in CSS Color 4 (the latter being changed several times, although we finally went for the 4-digit ones throughout for consistency with the defining color space specifications) and also that the matrix coefficients for RGB to Y also differ from both CSS and the sRGB specification. The CSS ones were calculated from first principles and agree with the sRGB standard ones when rounded to 8 significant figures.
The text was updated successfully, but these errors were encountered: