Re: [csswg-drafts] [css-conditional-5][css-color] Define `style()` color comparison in more precise terms (#13157)

Ok so I think `none` should not match anything other than `none`, but aside from that, color space conversion should be fine, and if it preserves missing components, all the better. 
So if color space conversion invokes powerless-to-missing, that's fine, you'll just get false. Which color space you convert to _shouldn't_ matter, since powerless component groups are symmetrical.

Though if we go down the route of picking an epsilon, it would need to be different not just per color space, but also **per component**. I wonder if a better strategy may be to compute deltaEOK (which is computationally cheap once you convert to oklab) and use a fraction of the JND. Though that doesn't help when you have powerless components, so we may need to go down that route anyway…

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


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

Received on Tuesday, 24 March 2026 21:06:01 UTC