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
Now that we have toSum(), do we want to instead move this functionality there? So that toSum() (no args), just collapses as far as possible, but toSum("px", "em") returns something that has specifically "px" and "em" keys.
Done. toSum() now, appropriately, returns a CSSMathSum object, so there's no need for an additional factory function to turn the result back into a CSSNumericValue.
... so you can "cast" a type to a calc expression - e.g. collapse a calc with inches, pixels and ems to a calc with just pixels and ems.
The text was updated successfully, but these errors were encountered: