Skip to content

Commit 3f426e4

Browse files
committed
[css-scroll-snap] Make the order of operations clearer. Fixes #2214.
1 parent 2873e66 commit 3f426e4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

css-scroll-snap-1/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,10 @@ Scroll Snapping Area: the 'scroll-margin' property {#scroll-margin}
508508
Values represent outsets defining the
509509
<dfn lt="scroll snap area" local-lt="snap area">scroll snap area</dfn>
510510
that is used for snapping this box to the snapport.
511-
The <a>scroll snap area</a> is the rectangular bounding box of the transformed border box,
512-
plus the specified outsets,
513-
axis-aligned in the <a>scroll container’s</a> coordinate space.
511+
The <a>scroll snap area</a> is determined by taking the transformed border box,
512+
finding its rectangular bounding box
513+
(axis-aligned in the <a>scroll container’s</a> coordinate space),
514+
then adding the specified outsets.
514515

515516
Note: This ensures that the <a>scroll snap area</a> is always rectangular
516517
and axis-aligned to the <a>scroll container’s</a> coordinate space.

0 commit comments

Comments
 (0)