You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[scrollmarkers] Proposal: element backed scroll marker and scroll marker groups #1546
In summary, we propose to extend the scroll marker and scroll marker group syntaxes to allow non-pseudo element to back them. For scroll marker group, this would be done with an idref value (url(#foo)) which identifies a scroll marker group (which has to be marked with a scrollmarkergroup attribute). Then the direct children of that element that are marked with a scrollmarker attribute would be used instead of the generated pseudo elements. If there's not enough or too many, there are some reasonable behaviors (IMHO) that are outlined in the explainer.
Note that the explainer does have a bunch of open questions but I'm hoping to start the discussion by proposing this as a direction before digging into the details
I've yet to read through in detail but this + some form scroll commands for buttons (to essentially do an element instead of a pseudo-element for the scroll-buttons) feels like a good direction to look into.
The Open UI Community Group just discussed [scrollmarkers] Proposal: element backed scroll marker and scroll marker groups, and agreed to the following:
RESOLVED: This is a viable direction to pursue
The full IRC log of that discussion
<jarhar> vmpstr: *introduces issue*
<keithamus> q?
<jarhar> q+
<lwarlow> q+
<masonf> scribe+
<masonf> jarhar: in the case that you don't provide enough elements, you'll generate pseudos like it already does.
<masonf> ...but you're inheriting some properties or something? If you don't define any, what do you get?
<masonf> vmpstr: you would create a scroll marker group element. Today, the pseudo is created, with scroll marker children.
<masonf> ...you'll get a scroll marker group with some possibly real scroll markers in it. And the extras would be pure pseudos.
<masonf> {I think I got that?}
<masonf> jarhar: you don't create html elements for the scroll markers, just the group?
<masonf> vmpstr: for the ones you didn't provide, nothing is created for you in the DOM.
<masonf> ...you can have 3 real children markers, but you need 4. The 4th will be just a pseudo element.
<masonf> q+
<masonf> ack jarhar
<masonf> scribe-
<keithamus> q?
<jarhar> lwarlow: this is definiteyl worth exploring. i think is it the way with css carousels to specify the max number of pages? some column thing
<jarhar> lwarlow: if theres a way where you can be confident that youre only going to have 10 pages as your max, and you can just include the 10 real elements and that covers you
<jarhar> lwarlow: i think that still makes it quite useful
<masonf> q-
<keithamus> q+
<jarhar> lwarlow: we want to try to prevent people chucking 100 elements there in case. in most scenarios you have a rough idea of how many pages youre going to have. one aspect here is for the buttons, you could do the marksers with real elements, it would be cool if you could to scroll markers with real elements and have commands
<masonf> done! ship it
<jarhar> flackr: we did that right? we have scroll commands
<jarhar> lwarlow: did it ship?
<jarhar> flackr: i believe so
<jarhar> lwarlow: its not in the spec?
<dgrogan> I think it's behind a flag
<jarhar> lwarlow: if we have scroll commands then that solves that. if we dont have them then we should have scroll commands
<masonf> Not shipped in chromium: https://chromestatus.com/feature/6400108400869376
<jarhar> lwarlow: theres all sorts of scroll on the web and maybe we dont need to offer all of them
<jarhar> lwarlow: if you have it where youre generating the html markup like this, are there use cases where its still quite dynamic. youre imaginging someone having 10 elements. its going to change based on screen size. if its more that you think there are carousels that are static
<jarhar> lwarlow: if tabs is the mode that people have instead of links, with fixed size, should we just do tabs in html
<masonf> q+
<gregwhitworth> q+
<keithamus> ack lwarlow
<keithamus> Zakim, close queue
<Zakim> ok, keithamus, the speaker queue is closed
<jarhar> lwarlow: if we think that that the tabs pattern is what they want for this, maybe that is the solution and we dont need it. if its dynamic content and its 15 links or buttons and you hide the excess ones then i think this api makes sense. i think its worth exploring
<gregwhitworth> since lwarlow has dropped the bomb; we should carry this over to next week IMO
<jarhar> lwarlow: i guess you can do .focus on these things and it will do the thing where it moves it and scrolls. focusability api solves that too
<jarhar> vmpstr: the other potential here for the whole you dont know how many scroll markers you need thing, i was thinking maybe theres some room to have an event that says your number of scroll markers chagnes or the ability to query how many you have, so you could write script to add however many you need
<jarhar> keithamus: i like the event. i liek the element backing. i think generating extra ones gets a bit weird. to lukes point, there is a definite max upper bound. as a usability constraint, youre going to align a bunch even if the scroll markers groups align based on layout
<lwarlow> I think perhaps we should just not generate extras
<jarhar> keithamus: im interested in how those things get represented especially if you end up generating
<lwarlow> Make it an author error if there's not enough
<jarhar> keithamus: one follow on from here would be exploring some kind of speudos
<jarhar> keithamus: i know theres target current but if theres some combination of nth where you could do an nth scroll marker and then do fun stuff with 2n+1
<keithamus> ack keithamus
<keithamus> q?
<lwarlow> ack masonf
<gregwhitworth> ack gregwhitworth
<jarhar> masonf: usually its a lot easier to add elements when they dont use magic. i would like to do this first and then use tabbed elements that do the css for you
<keithamus> ack masonf
<keithamus> q?
<lwarlow> Solid *maybe* on that. I think it depends how we want tabs to work
<lwarlow> Often they're not scrollable
<keithamus> PROPOSED: This is a viable direction to pursue
<lwarlow> +1
<masonf> +1
<keithamus> RESOLVED: This is a viable direction to pursue
Activity
lukewarlow commentedon Nov 5, 2026
I've yet to read through in detail but this + some form scroll commands for buttons (to essentially do an element instead of a pseudo-element for the scroll-buttons) feels like a good direction to look into.
css-meeting-bot commentedon Nov 5, 2026
The Open UI Community Group just discussed
[scrollmarkers] Proposal: element backed scroll marker and scroll marker groups, and agreed to the following:RESOLVED: This is a viable direction to pursueThe full IRC log of that discussion
<jarhar> vmpstr: *introduces issue*<keithamus> q?
<jarhar> q+
<lwarlow> q+
<masonf> scribe+
<masonf> jarhar: in the case that you don't provide enough elements, you'll generate pseudos like it already does.
<masonf> ...but you're inheriting some properties or something? If you don't define any, what do you get?
<masonf> vmpstr: you would create a scroll marker group element. Today, the pseudo is created, with scroll marker children.
<masonf> ...you'll get a scroll marker group with some possibly real scroll markers in it. And the extras would be pure pseudos.
<masonf> {I think I got that?}
<masonf> jarhar: you don't create html elements for the scroll markers, just the group?
<masonf> vmpstr: for the ones you didn't provide, nothing is created for you in the DOM.
<masonf> ...you can have 3 real children markers, but you need 4. The 4th will be just a pseudo element.
<masonf> q+
<masonf> ack jarhar
<masonf> scribe-
<keithamus> q?
<jarhar> lwarlow: this is definiteyl worth exploring. i think is it the way with css carousels to specify the max number of pages? some column thing
<jarhar> lwarlow: if theres a way where you can be confident that youre only going to have 10 pages as your max, and you can just include the 10 real elements and that covers you
<jarhar> lwarlow: i think that still makes it quite useful
<masonf> q-
<keithamus> q+
<jarhar> lwarlow: we want to try to prevent people chucking 100 elements there in case. in most scenarios you have a rough idea of how many pages youre going to have. one aspect here is for the buttons, you could do the marksers with real elements, it would be cool if you could to scroll markers with real elements and have commands
<masonf> done! ship it
<jarhar> flackr: we did that right? we have scroll commands
<jarhar> lwarlow: did it ship?
<jarhar> flackr: i believe so
<jarhar> lwarlow: its not in the spec?
<dgrogan> I think it's behind a flag
<jarhar> lwarlow: if we have scroll commands then that solves that. if we dont have them then we should have scroll commands
<masonf> Not shipped in chromium: https://chromestatus.com/feature/6400108400869376
<jarhar> lwarlow: theres all sorts of scroll on the web and maybe we dont need to offer all of them
<jarhar> lwarlow: if you have it where youre generating the html markup like this, are there use cases where its still quite dynamic. youre imaginging someone having 10 elements. its going to change based on screen size. if its more that you think there are carousels that are static
<jarhar> lwarlow: if tabs is the mode that people have instead of links, with fixed size, should we just do tabs in html
<masonf> q+
<gregwhitworth> q+
<keithamus> ack lwarlow
<keithamus> Zakim, close queue
<Zakim> ok, keithamus, the speaker queue is closed
<jarhar> lwarlow: if we think that that the tabs pattern is what they want for this, maybe that is the solution and we dont need it. if its dynamic content and its 15 links or buttons and you hide the excess ones then i think this api makes sense. i think its worth exploring
<gregwhitworth> since lwarlow has dropped the bomb; we should carry this over to next week IMO
<jarhar> lwarlow: i guess you can do .focus on these things and it will do the thing where it moves it and scrolls. focusability api solves that too
<jarhar> vmpstr: the other potential here for the whole you dont know how many scroll markers you need thing, i was thinking maybe theres some room to have an event that says your number of scroll markers chagnes or the ability to query how many you have, so you could write script to add however many you need
<jarhar> keithamus: i like the event. i liek the element backing. i think generating extra ones gets a bit weird. to lukes point, there is a definite max upper bound. as a usability constraint, youre going to align a bunch even if the scroll markers groups align based on layout
<lwarlow> I think perhaps we should just not generate extras
<jarhar> keithamus: im interested in how those things get represented especially if you end up generating
<lwarlow> Make it an author error if there's not enough
<jarhar> keithamus: one follow on from here would be exploring some kind of speudos
<jarhar> keithamus: i know theres target current but if theres some combination of nth where you could do an nth scroll marker and then do fun stuff with 2n+1
<keithamus> ack keithamus
<keithamus> q?
<lwarlow> ack masonf
<gregwhitworth> ack gregwhitworth
<jarhar> masonf: usually its a lot easier to add elements when they dont use magic. i would like to do this first and then use tabbed elements that do the css for you
<keithamus> ack masonf
<keithamus> q?
<lwarlow> Solid *maybe* on that. I think it depends how we want tabs to work
<lwarlow> Often they're not scrollable
<keithamus> PROPOSED: This is a viable direction to pursue
<lwarlow> +1
<masonf> +1
<keithamus> RESOLVED: This is a viable direction to pursue