- From: Tab Atkins Jr. via GitHub <noreply@w3.org>
- Date: Tue, 05 Aug 2025 18:32:12 +0000
- To: public-css-archive@w3.org
Yup, just noting that *all* cross-element name references like this in CSS don't pay attention to specificity when resolving name conflicts; they all consistently resolve such conflicts just by looking at the DOM structure (generally (always?) "last wins", like what anchor references do). Involving specificity in this process would be a novel change, and I think usually not what you want. For example, if the "selected" element sets its `anchor-name` via the `style` attribute, then hovering would need to use `!important` to get `anchor-name` to win. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12576#issuecomment-3156183767 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 August 2025 18:32:13 UTC