Skip to content

[cssom] Clarification to the "6 decimals" of serialized CSS number values #7416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wangxianzhu opened this issue Jun 24, 2022 · 2 comments
Labels
cssom-1 Current Work

Comments

@wangxianzhu
Copy link

https://drafts.csswg.org/cssom/#serializing-css-values says the following for serialized CSS number values:

... rounding the value if necessary to not produce more than 6 decimals ...

It is not clear if the wording of '6 decimals' means '6 significant digits' or '6 digits after the decimal point'. Current browsers seem to all implement the former.

It'll be better to use more precise wording as 'decimal' is ambiguous.

@dbaron
Copy link
Member

dbaron commented Jun 25, 2022

(This came from discussion in crrev.com/c/3722705.)

@dbaron dbaron added the cssom-1 Current Work label Jun 25, 2022
@cdoublev
Copy link
Collaborator

Also have a look at #6471 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cssom-1 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants