- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Apr 2025 16:09:32 +0000
- To: public-css-archive@w3.org
Presumably the nearest scroll container in the containing block chain?
I would expect `c.scrollParent` to be `a`, not `b`.
```html
<!DOCTYPE html>
<div id="a" style="width: 150px; height: 150px; position: relative; overflow: scroll">
<div id="b" style="width: 100px; height: 100px; overflow: scroll">
<div id="c" style="position: absolute; background: cyan">abspos</div>
<div style="height: 500px; background: linear-gradient(to bottom, yellow, orange)"></div>
</div>
<div style="height: 500px; background: linear-gradient(to bottom, yellow, orange)"></div>
</div>
```
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1522#issuecomment-2842509320 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 April 2025 16:09:33 UTC