- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Fri, 09 Feb 2024 09:26:22 +0000
- To: public-css-archive@w3.org
> I'm curious what the `.foo[@id]` selector syntax adds in this proposal. On the other end, `item-[@id]` seems like a nice concise syntax equivalent to e.g. `item- attr(id, ident))`. If we can access attributes as idents (or interpolate them into idents), I'm not sure if the selector-side syntax bring anything new to the equation? Having a value-side shorthand for accessing attributes as idents might still be useful - it's certainly simpler to write. Which ID would you pick, given: ```css section[id] > li[id] label * { view-transition-name: item-[@id] }` ``` Without `@` at the selector we'd have to assume that you mean the attribute on the selected element, but that's not always the case. -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8320#issuecomment-1935588983 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 9 February 2024 09:26:24 UTC