Re: [csswg-drafts] [cssom] Serialization of large numbers should use scientific notation (#6471)

Agreed, the spec should reflect reality there.

A small wrinkle is that, per [the current Syntax spec](https://drafts.csswg.org/css-syntax/#consume-a-number), using scinot automatically makes it a `<number>`, not an `<integer>`. I did this for simplicity, but if we're serializing large numbers, either properties like `z-index` need to *not* use scinot even for large numbers, or I need to amend Syntax to allow scinot to produce integers at least some of time.

(Happy to go with either "only when there's no decimal point", so `23e8` is an integer but `23.4e8` isn't, or the more forgiving "as long as the exponent exceeds the number of digits after the decimal point", so `23.4e8` would be an integer but `2.34e1` isn't.)

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


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

Received on Friday, 23 July 2021 22:33:08 UTC