https://drafts.csswg.org/cssom-view/#dom-htmlelement-scrollparent
- If any of the following holds true, return null and terminate this algorithm:
Sure, the root element won't be a scroll container because of overflow propagation, so removing the early return will typically result in null anyways.
However, if the root is an open shadow host, then the body could be assigned to a slot which is a scroll container. In that case I think scrollParent should be the slot, not null.
@flackr What was the point of this condition?