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
{{ message }}
Repository navigation
[css-values-5] *-interpolate() with equal stop positions or without segments #14313
For (1), it depends on which of { x: 1, y: 1 } or { x: 1, y: 2 } takes precedence. I would say that if any stop has an input position that is equal to one or more preceding stops, it replaces them. Thus, calc-interpolate(0.5, 0: 0px, 1: 1px, 1: 1em) would serialize with calc-interpolate(0.5, 0: 0px, 1: 1em) as a component of a declared value.
For (2), if I am not mistaken, it defines an interpolation map from and to 0px. I would say that if there is a single stop and the interpolation progress is lower or greater than its input position, the resolved value is -infinity or +infinity, respectively.
For (3), it does not appear to define any segment. I would say the same applies as for (2).
Activity
Simplify calc-interpolate() at parse time if possible