Re: [csswg-drafts] Add a `::interest-hint` pseudo element to interest invokers (#12437)

I've also opened an issue for an alternative HTML-only feature that meets the same use case: https://github.com/openui/open-ui/issues/1258. Would be worth discussing that alternative.

Additional questions that have come up as I prototyped `::interest-hint`:
- Accessibility: how should this work for `<button interestfor=foo>`? Since the pseudo element is "inside" the element, and in this case the pseudo is a button, this is a button inside a button, which isn't great.
- Focusability: the pseudo-element needs to be focusable, I would assume. I guess that should work like `::scroll-marker` and `::scroll-button`?
- Is there a need to expose the pseudo to events, so e.g. JS `click` listeners can be attached?

Those are the ones that prompted the new HTML-only idea.

-- 
GitHub Notification of comment by mfreed7
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12437#issuecomment-3160700237 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 August 2025 15:48:26 UTC