- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 Jan 2025 17:22:27 +0000
- To: public-css-archive@w3.org
tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values-5] Should ident() accept <number> and <dimension>? == Currently, the [ident() function](https://drafts.csswg.org/css-values-5/#ident) is defined to accept `<string> | <integer> | <ident>`, and serializes these before concatenating them. This means that `ident("foo" 1)` is valid (producing the ident `foo1`), but `ident("foo" 1.2)` isn't, and `ident("foo" calc(1.2))` produces `foo1`. That seems odd. Is there a good reason to exclude `<number>`, and with that, `<dimension>`? The serialization for numbers is inherently a bit less predictable, of course, due to floating-point, but in common cases it should do what the author expected. (Especially with CSS's "no more than 6 digits after the decimal point", so we avoid things like JS's `.1 + .2` yielding `0.30000000000000004`.) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11551 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 21 January 2025 17:22:28 UTC