Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more ::scroll-marker-group containment #31

Open
mstensho opened this issue Aug 19, 2024 · 0 comments
Open

Add more ::scroll-marker-group containment #31

mstensho opened this issue Aug 19, 2024 · 0 comments

Comments

@mstensho
Copy link

https://drafts.csswg.org/css-overflow-5/#scroll-marker-group-pseudo currently says:

The following additions are recommended for the default UA stylesheet to ensure that the generation of scroll marker pseudo-elements does not invalidate the layout of the site:

/* The generation of ::scroll-marker pseudo-elements cannot invalidate layout outside of this pseudo-element. */
::scroll-marker-group { contain: size !important; }

I also think we should add layout containment (to be completely sure that we don't invalidate the layout of the site), so that scroll markers cannot escape from their scroll marker group (e.g. if the scroll marker is absolutely positioned). Layout containment seems less of a limitation to developers, compared to the size containment that's already there. Not implying layout containment will make it trickier to implement.

One might consider paint containment as well, for the sake of consistency (if that makes sense), although I don't think it makes much of a difference implementation-wise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant