Re: [csswg-drafts] [cssom-view] `scrollParent` shouldn't necessarily be null for the body (#12723)

OK, I missed that when the CB is the initial containing block, then it returns `document.scrollingElement`.

So for non-quirks mode then I think it would make more sense for `document.body.scrollParent` to be the root (`document.scrollingElement`).

But for quirks mode, if the `document.scrollingElement` is the body, then it may be a bit weird if `document.body.scrollParent === document.body`

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12723#issuecomment-3253934949 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 4 September 2025 14:11:56 UTC