[css-overflow-5] ::scroll-marker-group should use its originating element as its implicit anchor element
An expected common behavior for ::scroll-marker-group is that it'll be abspos and attached to its scroller. This currently would require use of anchor-name on the scroller, but I think we can just set the scroller as the ::scroll-marker-group's implicit anchor element instead. This way, assuming position-anchor isn't set on ::scroll-marker-group, it'll automatically anchor itself to its scroller. You'd be able to do things like set inset-area: right center; without any additional effort, etc.
So will this allow us to anchor any element to ::-webkit-scrollbar-thumb?
So will this allow us to anchor any element to
::-webkit-scrollbar-thumb?
I don't think this is related to the proposal here. This proposal is about anchoring the ::scroll-marker-group to its originating element by default.
@tabatkins this sounds reasonable to me. I wonder if this would make sense to apply more generally to other tree abiding pseudo-elements having an implicit anchor element of their originating element, e.g. ::before / ::after?
Hmmmmm. Maybe. Let me open an issue.