- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 25 Sep 2024 22:11:42 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-overflow-5] Scroll-markers`. <details><summary>The full IRC log of that discussion</summary> <TabAtkins> flackr: you can imagine this like a ToC for a scrolalble element<br> <TabAtkins> flackr: in my example, one way to do it is create a set of anchor links to your content<br> <TabAtkins> flackr: I'm proposing you add `focusgroup` to get the input semantics you expect - can arrow between them, only one is active at a time<br> <TabAtkins> flackr: And the browser has some tracking to update which one is "active" at a time<br> <TabAtkins> flackr: if your page only contains top-level sematnic items - a list of items - you can create pseudo-elements for these<br> <TabAtkins> flackr: this is crucial for autoamtic pagination, like columns, so you can have one marker per page, not one per item<br> <flackr> https://github.com/flackr/carousel<br> <TabAtkins> flackr: here's a simple live example, three sections, declared that each creates a scrol lmarker, and they've been flowed into the scroll marker group on the left<br> <hdv> q+<br> <TabAtkins> flackr: [showing source] roughly speaking, you add a pseudo-element for each thing that needs a marker, and a scoll-marker-group pseudo is automatically created to hold them<br> <TabAtkins> hdv: what are the a11y semantics of something that becomes a scroll marker?<br> <bkardell_> q+<br> <TabAtkins> flackr: shoudl be whatever makes the most sense for these use-cases. given that we upgrade links, i assume it woudl ahve the same sematnics as an anchor link<br> <bkardell_> q-<br> <Patrick_H_Lauke> link with aria-current="true"...<br> <hdv> ack me<br> <TabAtkins> TabAtkins: and note that in this example it's *generating* fresh anchor links, they can be whatever. if reusing elements on the page, they have to be links already<br> <TabAtkins> flackr: this example reuses existing links. The ToC links are in a focusgroup, and we track sc roll progress to indicate which is active<br> <bkardell_> q+<br> <TabAtkins> flackr: I also have a separate scroll marker group on the right to track the top-level sections.<br> <TabAtkins> flackr: each group has its own "current" marker<br> <TabAtkins> flackr: inline links, not in a focus group, dont' get considered in this, they're never marked as "current"<br> <flackr> https://drafts.csswg.org/css-overflow-5/<br> <TabAtkins> flackr: This is the most mature of these specs, it's currently in the CSS Overflow 5 spec<br> <flackr> https://codepen.io/flackr/pen/MWMLPpP<br> <TabAtkins> flackr: what i've shown so far is a polyfill, but we have an impl in Chrome Canary with experimental web paltform features turned on<br> <TabAtkins> flackr: the only content on this page is a bunch of items. they're automatically grouped into pages, with scroll markers for each page, and next/prev buttons, and it's all automatic from CSS<br> <TabAtkins> flackr: any questions about scroll markers or move on?<br> <TabAtkins> bkardell_: This is dependent on the focusgroup attribute? what's the progress on that right now?<br> <TabAtkins> flackr: to make a scroll marker group from link elements, that's dependent on focusgroup<br> <TabAtkins> flackr: we implicitly have the semantics for the pseudo-elements, but it doesn't depend on the attribute<br> <TabAtkins> bkardell_: does the implementation support focusgroup?<br> <jarhar> q?<br> <TabAtkins> flackr: the pseudo-element impl has an implementation of focusgroup semantics, by hand. we do have a `focusgroup` impl behind a flag in Chrome, but not shipping yet.<br> <jarhar> q+<br> <TabAtkins> flackr: The use of it in my earlier demo used the polyfill<br> <TabAtkins> ack bkardell_<br> <bkardell_> q-<br> <TabAtkins> jarhar: i'm not super familair with the pseudo-element API shape<br> <TabAtkins> jarhar: kinda seems like these are more element-like than other pseudos<br> <TabAtkins> jarhar: we had to make some changes to make them receive events in ways other pseudos can't<br> <TabAtkins> jarhar: we have, in blink, a pseudoelement class that's a subclass of Element so it kinda works<br> <TabAtkins> jarhar: talking with Tim, he said their pseudos are more strictly different. might be difficult for them to implement.<br> <TabAtkins> jarhar: wonder if there are any webkit folks around to talk about<br> <TabAtkins> flackr: good question. pseudos *can* be targeted by clicks and other events. we hide that the pseudo was targeted (use the owner element instead), but i fyou click on a ::before you can listen for the click event<br> <TabAtkins> jarhar: and you can use like hover pseudoclass?<br> <TabAtkins> TabAtkins: Yes, and :focus/:active if they're focusable/etc<br> <bkardell_> maybe we can tag ntim so they can find it when there's time and let us know :)<br> <TabAtkins> flackr: the CSS pseudo spec has a full definition of PseudoElement interface, subclassing Element, so there's a route to them being full-blown event targets<br> <TabAtkins> jarhar: okay, probably less crazy than i thought it was<br> <TabAtkins> ack jarhar<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10720#issuecomment-2375357073 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 25 September 2024 22:11:43 UTC