- From: Christoph Päper via GitHub <sysbot+gh@w3.org>
- Date: Tue, 21 Jan 2025 20:58:55 +0000
- To: public-css-archive@w3.org
Crissov has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-values] Friendlier `attr()` type syntax (at least for plain numbers) == I've recently tried to use the new `attr()` syntax as settled on in #11035. I very much despise having nested parentheses with `type()`, especially since it very often just contains a single type in angle brackets, e.g. `attr(colspan type(<integer>), 1)`. Didn't the old drafts use a keyword `as`? That would still read a lot nicer in such basic cases: `attr(colspan as <integer>, 1)`. Can we still bring that back? Alternatively, can we add special-casing for unit-less numbers, i.e. `number` (and perhaps `integer`) besides `string` and the units? `attr(colspan number, 1)` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11552 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 20:58:56 UTC