Re: [csswg-drafts] [css-values-4] How to serialize infinite values? (#3768)

Note that whatever you choose would also be used for NaN, per [this line](https://drafts.csswg.org/css-values/#top-level-calculation):

> If a top-level calculation (a math function not nested inside of another math function) would produce a NaN, it instead produces +∞. 

Your suggestion seems the simplest from a syntax perspective, if we just need something for serialization. It's a little bit confusing that you simplify down other functions only to replace them with a different function, but the important part is that the end result is clearly defined.

Would your simple version then be `calc(1px/0)`, with `1px` replaced by whatever is the canonical unit for the correct dimension?

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

Received on Tuesday, 26 March 2019 22:04:37 UTC