Skip to content

[css-scroll-snap] Is scroll-margin applied before or after transform? #2214

@syj10

Description

@syj10

https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin
The spec says,

The scroll snap area is the rectangular bounding box of the transformed border box, plus the specified outsets, axis-aligned in the scroll container’s coordinate space.

Does that mean "transform the border box, then add the specified outsets", or "add the specified outsets to the border box and transform the result"?

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