Re: [csswg-drafts] [css-values-5] Should ident() accept <number> and <dimension>? (#11551)

Can we get a WG resolution before closing this?

I think it makes sense to exclude `<dimension>`, but IMO if `<integer>` is allowed, `<number>` should also be.
- `calc(1.2)` and `1.2` behaving differently is definitely weird.
- There are many operations that get you into `<number>` even when all you have is an integer, e.g. `calc(12 / 4)` IIRC. We should try to avoid the "ugh, I know this is an integer, but how do I explain it to CSS?"

So it seems reasonable to just round `<number>` if used directly. People can always customize the rounding via `round()`, but they should not have to use it just to get things working.

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


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

Received on Wednesday, 22 January 2025 19:34:39 UTC