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
The percent values are about the saturation and lightness of the generated color and are unrelated to directions.
Yet, when passing it through CSSJanus you get:
background:hsl(15070%30%);
which is totally wrong.
Another example:
background:color-mix(in srgb, red 30%, blue);
turns into
background:color-mix(in srgb, red 70%, blue);
The root cause is probably this regex which tries to capture background-position values out of the background shorthand property.
(As a side note, I'm not sure how this is even supposed to work well for actual position values, considering that the default alignment direction is still "left". For example,