+
5.1 Scroll Snapping Area: the scroll-margin property |
scroll-margin |
|
Script |
|
scroll-target-margin-001 |
= |
Recommend |
#target and scroll-margin with snapping off (y-axis)
- Test passes if scroll-margin is honored on a scroll container with 'scroll-snap-type: none' when navigating to an element with the target fragment ID.
|
scroll-target-margin-002 |
= |
Recommend |
scrollIntoView() and scroll-margin with snapping off (y-axis)
- Test passes if scroll-margin is honored on a scroll container with 'scroll-snap-type: none' when scrolling an element into view explicitly by script.
|
scroll-target-margin-003 |
= |
Recommend |
focus() and scroll-margin with snapping off (y-axis)
- Test passes if scroll-margin is honored on a scroll container with 'scroll-snap-type: none' when scrolling an element into view even if that operation is implied (in this case, by .focus()).
|
scroll-target-margin-004 |
= |
Recommend |
scroll-margin on elements with 'display: table;'
- Test passes if scroll-margin is honored on elements with 'display: table'.
|
scroll-target-padding-003 |
= |
|
focus() and scroll-padding with snapping off (y-axis)
- Test passes if scroll-padding is honored on a scroll container with 'scroll-snap-type: none' when scrolling an element into view even if that operation is implied (in this case, by .focus()).
|
scrollintoview-scrollmargin |
|
Script |
CSSOM View - scrollIntoView considers scroll-margin
|
+
5.2.1 Scoping Valid Snap Positions to Visible Boxes |
snap-to-visible-areas-both |
|
Script |
Snap to a visible area only even when there is a closer snap point for an area that is closer but not visible (using both axes snap type)
|
snap-to-visible-areas-margin-both |
|
Script |
Snap to an area where the element's scroll-margin is visible but not the element itself (using both axes snap type)
|
snap-to-visible-areas-margin-x-axis |
|
Script |
Snap to an area where the element's scroll-margin is visible but not the element itself (using x-axis snap type)
|
snap-to-visible-areas-margin-y-axis |
|
Script |
Snap to an area where the element's scroll-margin is visible but not the element itself (using y-axis snap type)
|
snap-to-visible-areas-x-axis |
|
Script |
Snap to a visible area only even when there is a closer snap point for an area that is closer but not visible (using x-axis snap type)
|
snap-to-visible-areas-y-axis |
|
Script |
Snap to a visible area only even when there is a closer snap point for an area that is closer but not visible (using y-axis snap type)
|