Re: [csswg-drafts] [cssom] How should extremely small <number>s be serialized?

`<integer>`s should never be serialized with scientific notation according to the current text, as all it says is:

> A base-ten integer using digits 0-9 (U+0030 to U+0039) in the shortest form possible, preceded by "-" (U+002D) if it is negative.

The only part that this leaves open is for other types e.g. `<length>`s, in which the spec says that they should be serialized as `<number>`s. Perhaps the spec could state that only `<number>`s that are smaller than `1e-6` (e.g. would round to `0` if attempted to be serialized per current rules`) can be serialized in scientific notation? I'm not sure what a good solution would be.

GitHub Notification of comment by csnardi
Please view or discuss this issue at using your GitHub account

Received on Wednesday, 21 February 2018 19:04:49 UTC