Skip to content

[css-overflow] What is the expected behavior of scrollable overflow in case of non-rectangular descendant area due to transforms? #12112

Open
@stevennovaryo

Description

@stevennovaryo

The overflow spec defines how scrollable overflow area calculated in a recursive manner. Basically, the spec would consider the union of children's area for each layer of recursion. In which, could be non-rectangular due to transform.

On the other hand, implementations uses the smallest bounding rectangle of these union in each layer of recursion for the calculation of a scrollable overflow area. This causes inaccuracy where the scrollable overflow of the element could extend beyond the farthest point of it's descendants if it have nested transforms that results in non-rectangular shapes. As shown by scrollable overflow of an element with nested rotated descendant example.

cc: @xiaochengh @Loirooriol

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions