Open
Description
See : https://drafts.csswg.org/css-syntax/#consume-number
Also mentioned in passing by @tabatkins here : #6471 (comment)
As a result of the current tokenizing rules these values have type number
:
10e3
1000.0
While both arguably represent integer values.
Should the algorithm be updated to reflect this?
You can see the difference between numbers with type number
and integer
in action here : https://codepen.io/romainmenke/pen/GRLwLQy
Wrapping values of type number
in a math expression already "normalizes" these into integers when possible. (e.g. z-index: calc(10e3)
works)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Thursday morning