Skip to content

[cssom-view] scrollParent shouldn't necessarily be null for the body #12723

@Loirooriol

Description

@Loirooriol

https://drafts.csswg.org/cssom-view/#dom-htmlelement-scrollparent

  1. 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions