- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Jan 2025 19:03:02 +0000
- To: public-css-archive@w3.org
> 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?" This just works already. You'll get a 3, because CSS auto-rounds math functions when used an an `<integer>`. > So it seems reasonable to just round `<number>` if used directly. We *purposely* don't do that rounding on numeric literals, because it's virtually guaranteed to be a *mistake* to write a non-integer where an integer is expected. We shouldn't break with our general tradition here. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11551#issuecomment-2610792176 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 23 January 2025 19:03:03 UTC