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
fix: corrected threshold for luminance (#472)
The correct threshold is 0.04045, as recited in the official IEC standard for sRGB. And while it was incorrect (0.03928) for a long time in WCAG2, it was corrected by the W3 AGWG in May 2021.
Current WCAG 2.1 and 2.2 reflect the correct 0.04045 threshold.
Co-authored-by: Rico Kahler <ricokahler@gmail.com>
fix: hsla parsing with an alpha value of 0 (#464)
* fix: hsla parsing with an alpha value of 0
* test: add test explictly for hsla with zero alpha
Co-authored-by: Rico Kahler <kahlwric@amazon.com>