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
Essentially what this does, is attempt to divide the components into rough sets of dependencies and try to preserve author intent as much as possible.
Sure, they’re not entirely orthogonal, and e.g. tweaking hue in HSL does affect chroma and lightness in oklch, but it's the lesser of two evils, the other evil being converting none to 0.
To that goal, I can see a few improvements we can make to minimize none → 0 conversions even more:
Instead of analogous components, word the prose around analogous sets of components. The current analogous components are just sets of size 1.
If two color spaces have analogous components, the components remaining after you remove all analogous components, are an analogous set. Meaning, if Lab L is analogous to OKLch L, this means Lab a,b are analogous to OKLCh c, h., so converting e.g. oklch(50% none none) to lab yields lab(42 none none).
(This came out of my comment here: #10151 (comment) )
Currently, css-color-4 defines that
nonevalues will be carried forward to analogous components. Basically, even when converting to different color spaces, if there are analogous components, they will becomenone.Essentially what this does, is attempt to divide the components into rough sets of dependencies and try to preserve author intent as much as possible.
Sure, they’re not entirely orthogonal, and e.g. tweaking hue in HSL does affect chroma and lightness in oklch, but it's the lesser of two evils, the other evil being converting
noneto0.To that goal, I can see a few improvements we can make to minimize
none→0conversions even more:oklch(50% none none)tolabyieldslab(42 none none).none#10203 )Not sure if this can be considered editorial, or we'd need WG resolution. @svgeesus ?