[css-houdini-drafts] [css-typed-om] Color conversion and contrast ratio (#989)

atanassov has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] Color conversion and contrast ratio ==
With the the current color space additions to [css-color-4], namely [lch() and lab()](https://drafts.csswg.org/css-color-4/#specifying-lab-lch), we solved the declarative side of the problem. What we lack is the ability to request or at least easily convert computed color values into these color spaces. Can we allow that in Typed OM?

Further, it would be great to have a function that enables contrast ratio calc given any two colors. The expectations for [color contrast described by WCAG](https://www.w3.org/TR/WCAG20/#contrast-ratiodef) are rather detailed and lack developer ergonomics. Typed OM seems really well positioned to help.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/989 using your GitHub account

Received on Thursday, 14 May 2020 05:12:46 UTC