Re: [csswg-drafts] [css-color-4] Serialization/normalization of color() (and other advanced color functions) (#4826)

From CSSOM:

> If the alpha component of the color is not equal to one, then return the serialization of the rgba() functional equivalent of the non-opaque color. 

That seems to be comparing two floats, alpha and 1.0, which is typically seen as poor practice. Shouldn't that be updated to say that `if 1.0 - α > ε ` for some suitably defined ε?

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

Received on Tuesday, 17 March 2020 22:19:21 UTC