- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Thu, 04 Sep 2025 15:31:48 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``Add an `::interest-button` pseudo element to interest invokers``. <details><summary>The full IRC log of that discussion</summary> <zcorpan> mfreed: This has been discussed a couple of times within csswg. This is a general-purpose pseudo for interest invokers<br> <zcorpan> mfreed: after the element for interestfor<br> <zcorpan> mfreed: e.g. for a button, next to it is a question mark that you can tap<br> <zcorpan> mfreed: dev opt-in<br> <zcorpan> mfreed: we discussed, might be better to use the command api... A11y folks thought it was a bad idea. The correct accessible pattern is a span with an onclick handler, because the accessibility information is already available. Should be something that can be clicked but not focusable<br> <lwarlow> q+<br> <astearns> q+<br> <zcorpan> mfreed: question about the name<br> <zcorpan> mfreed: question about position (after ::after)<br> <zcorpan> mfreed: questions in the issue<br> <astearns> ack lwarlow<br> <masonf> summary here: https://github.com/w3c/csswg-drafts/issues/12437#issuecomment-3211111439<br> <zcorpan> lwarlow: We don't want it to be tabbable right?<br> <zcorpan> mfreed: correct<br> <zcorpan> lwarlow: appearance: base-able<br> <zcorpan> lwarlow: button-like in user experience<br> <zcorpan> lwarlow: was there a conclusion about whether to have a command?<br> <ntim> q+<br> <zcorpan> mfreed: extensibility issue. Weird to make it not keyboard-focusable and not appear in the a11y tree<br> <zcorpan> mfreed: button with a command, points to an interestfor<br> <zcorpan> mfreed: subtly different pattern<br> <zcorpan> lwarlow: is there an example of another pseudo where you interact with ::before/::after<br> <zcorpan> mfreed: picker<br> <zcorpan> s/picker/picker-icon/<br> <zcorpan> mfreed: where does the thing fit in logically. Child, sibling?<br> <zcorpan> lwarlow: comes down to styling<br> <zcorpan> mfreed: I think near ::after<br> <zcorpan> lwarlow: I think after the after because it should be a sibling<br> <zcorpan> astearns: are there other instances of an interactive thing that we deliberately exclude from the a11y tree? seems weird to me<br> <zcorpan> lwarlow: number spin buttons<br> <zcorpan> lwarlow: file input button is technically not focusable<br> <zcorpan> lwarlow: same with range input<br> <ntim> number spin buttons don't provide extra context though, unlike the interest icon which might<br> <zcorpan> astearns: sounds like there are some assumptions that may or may not be true. The thing that you're showing interest in should already be in the a11y tree<br> <zcorpan> astearns: how much is it relying on authors doing the right thing?<br> <zcorpan> mfreed: I guess rely on not doing the wrong thing<br> <zcorpan> mfreed: addition of pseudo shouldn't change the rest of the a11y tree<br> <zcorpan> astearns: worry a bit about authors doing the wrong thing<br> <zcorpan> mfreed: agreed. I opened an a11y review with the w3c<br> <astearns> ack ntim<br> <astearns> ack astearns<br> <zcorpan> ntim: agree there are ways it can be misused<br> <zcorpan> ntim: maybe use it just to get the icon<br> <zcorpan> ntim: what happens if you have an invoker button, and generate interest icon. What happens when you click the interest icon?<br> <zcorpan> mfreed: Can have a button with a command the points to something, and interestfor for something else (showing what happens when you click the button)<br> <zcorpan> mfreed: the interest icon will only show the interest<br> <zcorpan> ntim: what if there's a click handler<br> <zcorpan> ntim: the pseudo is part of the button<br> <zcorpan> mfreed: good q. Haven't thought of that<br> <zcorpan> zcorpan: maybe if it's a sibling, it doesn't need to go through the owner element?<br> <zcorpan> ntim: usually for pseudos they do though<br> <zcorpan> mfreed: not just click, other events too<br> <zcorpan> mfreed: hover?<br> <zcorpan> lwarlow: can use css for special styling<br> <zcorpan> ntim: if you want to use JS for mouse over<br> <zcorpan> mfreed: need to think about this<br> <astearns> some cross-talk about tether<br> <zcorpan> zcorpan: video controls might not propagate click to the video<br> <zcorpan> mfreed: I can look at the examples luke gave and see what they do with clicks<br> <lwarlow> q+<br> <zcorpan> ntim: dependent on what webkit thinks of the interest proposal in general<br> <zcorpan> mfreed: one of the questions previously is whether it's more general than interestfor or if it's specific to interestfor<br> <astearns> ack lwarlow<br> <zcorpan> lwarlow: does this work well for the elements that accept interestfor<br> <zcorpan> lwarlow: button, anchor in HTML, anchor in SVG, and area element<br> <zcorpan> lwarlow: area is weird<br> <zcorpan> zcorpan: for svg anchor, would a sibling break positioning?<br> <zcorpan> mfreed: it's a child tho<br> <zcorpan> zcopran: ok I thought that wasn't decided<br> <zcorpan> mfreed: existing pseudos are children<br> <zcorpan> mfreed: will try to summarize, bring back to csswg<br> <lwarlow> q+<br> <zcorpan> astearns: may be useful to break out into subissues<br> <zcorpan> mfreed: click handler, general ordering question<br> <astearns> ack lwarlow<br> <zcorpan> lwarlow: re positioning, if this is position via anchor-positioning instead of static positioning, would that solve for SVG?<br> <zcorpan> ntim: not ideal, requires the icon to be out of flow<br> <zcorpan> lwarlow: makes sense<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12437#issuecomment-3254252906 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 September 2025 15:31:49 UTC