- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Sun, 21 Apr 2024 13:56:11 +0000
- To: public-css-archive@w3.org
romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-syntax] Should numbers have type `integer` whenever the actual value is an integer? == See : https://drafts.csswg.org/css-syntax/#consume-number Also mentioned in passing by @tabatkins here : https://github.com/w3c/csswg-drafts/issues/6471#issuecomment-885945731 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) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10238 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 21 April 2024 13:56:12 UTC