Re: [csswg-drafts] [css-typed-om] Minor issue in arithmetic methods add(), min(), and max() of CSSNumericValue (#12384)

Wait, no, step 2 takes care of that already, by prepending `this` to `values`. Since step 3 checks that all the items in `values` are `CSSUnitValue`s with the same type, that means that `this` must be as well, so the algo is sound. Same applies to all the other methods - their step 2 checks if `this` is a compatible type that can be directly altered, otherwise it shoves `this` into the list and works on that.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12384#issuecomment-2997768426 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 June 2025 19:55:15 UTC