- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 04 Mar 2026 17:18:19 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[cssom-view] `scrollParent` shouldn't necessarily be null for the body``, and agreed to the following: * `RESOLVED: scrollParent of root should be null, scrollParent of body is null iff body is the scrollingElement` <details><summary>The full IRC log of that discussion</summary> <emilio> oriol: scrollParent has an early return that returns null for root or body<br> <emilio> ... reasoning is that when the scroll container would be the viewport scrollParent returns the scrollingElement<br> <Rossen> q?<br> <emilio> ... could be either the same element or a descendant and that'd be problematic if it's walking scrollParent up<br> <flackr> q+<br> <emilio> ... not sure if we resolved on this<br> <emilio> ... do we want to return the scrolling element for the viewport?<br> <emilio> ... we could return the document node<br> <emilio> ... but that's annoying because causes authors to type check<br> <emilio> ... then I want to confirm if we want to prevent this footgun<br> <emilio> ... if so I propose to return null for the root element<br> <Rossen> ack flackr<br> <emilio> ... but only for `<body>` in quirks mode<br> <emilio> flackr: I was basically copying offsetParent<br> <emilio> ... you shouldn't have a node where you recursively get yourself<br> <emilio> ... scrollParent of root should be null, scrollParent of body is null iff body is the scrollingElement<br> <smfr> q+<br> <Rossen> ack smfr<br> <emilio> ... I think your change sounds good, keeps intent, I think we should hit scrollingElement if you're walking the the scroll parent change<br> <emilio> smfr: what's the case if body is overflow:scroll and root overflow:hidden<br> <emilio> oriol: in quirks mode or standards mode?<br> <emilio> smfr: standards mode<br> <emilio> flackr: then body would have a scroll parent of the root element<br> <emilio> smfr: ok<br> <emilio> +1<br> <emilio> PROPOSED RESOLUTION: scrollParent of root should be null, scrollParent of body is null iff body is the scrollingElement<br> <smfr> sounds fine<br> <emilio> RESOLVED: scrollParent of root should be null, scrollParent of body is null iff body is the scrollingElement<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12723#issuecomment-3998966905 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 4 March 2026 17:18:20 UTC