Re: [css-houdini-drafts] [css-typed-om] What does lack of range restriction imply about serialization?

> If width: calc(-1px) is fine, there's no reason z-index: calc(1.5) shouldn't be.

SGTM.

> you can't tell by looking whether val1.add(val2) is going to return a CSSUnitValue or a CSSMathSum, as it depends on the types and contents of val1 and val2.

That's a nasty footgun, avoiding it SGTM. In animation code we've had the liberty of leaving rounding and clamping to the very end, it makes the actual numeric calculations much easier when you've got all of finite floating point space to do your work in.

-- 
GitHub Notification of comment by alancutter
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/574#issuecomment-366092518 using your GitHub account

Received on Thursday, 15 February 2018 23:07:22 UTC