Re: [csswg-drafts] [cssom] Serialize numbers using scientific notation? (#8538)

While at it, we should serialize Infinity and NaN: https://drafts.csswg.org/css-values/#calc-error-constants

The precision loss to 6 digits helps with hiding implementation details of the precision, but OTOH it might cause roundtrip degradation for e.g. `pi` and `e`: https://drafts.csswg.org/css-values/#calc-constants - should those values be serialized as keywords?

Since the keywords are only allowed in `calc()`, that would need to be supported in serialization also. From what I understand of css-values, `<number>` does not include `calc()`. I don't see "calc" mentioned in cssom. (Maybe this should be its own issue?)

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


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

Received on Wednesday, 8 March 2023 11:16:51 UTC