Re: [csswg-drafts] [css-syntax] Should numbers have type `integer` whenever the actual value is an integer? (#10238)

@cdoublev [said](https://github.com/cdoublev/css/pull/3#issuecomment-2068027645) : 

> I think `<integer>` only exists for some corner cases of the CSS grammar. There should be a default rounding behavior in properties like order, z-index, etc.
> 
> Another argument is that Number.isInteger(1.0) is truthy, probably like in most if not all progaming languages.

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10238#issuecomment-2068053868 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:58:06 UTC