- From: Jason Williams via GitHub <noreply@w3.org>
- Date: Fri, 05 Sep 2025 11:49:34 +0000
- To: public-css-archive@w3.org
I lean towards fantasai and keithamus that this belongs in HTML. In the long run developers may need richer semantics, other roles, labels, translatable text etc. We don’t really have a precedent for setting ARIA attributes via CSS, and as Josh noted, the content property is already discouraged for meaningful text. Other pseudo-elements like ::before/::after are decorative only, so they don’t carry this precedent either. I also like Keith’s suggestion of a slotted element, since that offers more flexibility and keeps the semantics in the DOM. To my knowledge, slots are currently only used within shadow DOM, so extending that model to UA pseudo-elements like ::scroll-marker-group would be new? but it seems worth exploring. I assume you would need 2 slots, one for the marker group and another for the markers themselves (so only one marker can be defined whilst the UA repeats it as necessary). -- GitHub Notification of comment by jasonwilliams Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12176#issuecomment-3258073095 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 5 September 2025 11:49:35 UTC