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
[css-color-4] Define color value comparison algorithm #13157
Add a new "Comparing <<color>> Values" section immediately before
"Color Interpolation", defining when two <<color>> values are
"equivalent colors". The algorithm covers three cases: same color
space (component-by-component with epsilon, none only equals none),
different color spaces with a missing component (not equal), and
different color spaces with no missing components (convert to oklab,
compare with epsilon). Legacy sRGB syntaxes (rgb(), hsl(), hwb(),
hex, named, system colors) are normatively declared to share the
srgb color space. Used by style() container queries and CSS
Transitions to detect color changes.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
<li>Clarified in the main Color interpolation section that, if the hue interpolaton method is not specified, shorter is the default. (This was already specified in the Hue Interpolation section).
0 commit comments