- From: Oriol Brufau via GitHub <noreply@w3.org>
- Date: Fri, 26 Sep 2025 01:40:42 +0000
- To: public-css-archive@w3.org
> But `p2` can not be scrolled at `x` direction.
`p2` can be scrolled in the horizontal direction, by using JS.
That said, #12289 allows a scroll container to not be scrollable in one axis:
```html
<div id="p1" style="overflow-x: auto; overflow-y: hidden;">
<div id="p2" style="overflow-x: clip; overflow-y: auto;">
<div style="absolute: sticky; left: 10px;">sticky dom</div>
</div>
</div>
```
So the question remains: should the sticky positioned just use the nearest scroll container, or for each axis find the nearest ancestor that is scrollable in that axis?
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10453#issuecomment-3336488581 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 26 September 2025 01:40:43 UTC