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

This seems to work basically exactly like `::after` except with the additional property of triggering the host element’s interest invoker on click. I'm a little apprehensive on adding additional generated content pseudos, which complicate the author’s model of the tree (does this go before or after `::after`?). I wonder, can we decouple the functionality into a separate property that means "when this is clicked, trigger the parent's interest invoker"? Then this can be done with good ol' `::before`/`::after`, and it has the additional benefit that authors can create actual elements (because CSS generated content is not always sufficient) and designate them interest buttons.

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


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

Received on Wednesday, 3 December 2025 16:49:51 UTC