Re: [csswg-drafts] [css-color-6] color-contrast() should take transparency into account (#7358)

> In the [current draft](https://drafts.csswg.org/css-color-5/#colorcontrast), transparency is ignored when calculating contrast, because it was ignored in WCAG 2.1 as there were no non-opaque colors then.

Notice that APCA does specify blending the text color onto the background color using the text alpha, then computing the L <sup>c</sup>contrast of the blended result against the (assumed fully opaque) background. Of course this is made easier because the APCA formula requires specifying which is text and which is background :)

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7358#issuecomment-1287929467 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 22 October 2022 22:02:52 UTC