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

> Is this a good idea?

Sounds reasonable to me.

> What should the pseudo element be called?

::interest-hint sounds fine

> It should be a tree-abiding pseudo element, correct?

Yes. Actually a fully styleable pseudo-element, probably.

> Where does it live in the layout tree, relative to e.g. ::after and others?

I'm neutral on whether it comes before or after the ::after. Mildly inclined to say it's before, closer to the content, as ::after is often used for purposes that separate the element from other elements, and this needs to stay close to it.

> Should there be a way to put it before the originating element also?

I wouldn't object, but I don't think it's strictly necessary. I suppose hints on headings are more likely to want to be in front, while hints on body text are more likely to want to be after?

> Should hovering, focusing, or long-pressing the pseudo element also show interest in the originating element? (Seems a bit confusing to me, but maybe?)

It'll be a child of the originating element anyway, so hovering will work by default. I think they should all consistently work, then.

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


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

Received on Tuesday, 29 July 2025 00:21:13 UTC