You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- : Determines whether scrolling is instant or animates smoothly. This option is a string which must take one of the following values:
39
+
- : Determines whether scrolling is instant or animates smoothly. Its value can be one of the following:
41
40
-`smooth`: scrolling should animate smoothly
42
41
-`instant`: scrolling should happen instantly in a single jump
43
42
-`auto`: scroll behavior is determined by the computed value of {{cssxref("scroll-behavior")}}
43
+
44
+
The default is `auto`.
45
+
44
46
-`block` {{optional_inline}}
45
-
- : Defines the vertical alignment of the element within the scrollable ancestor container. This option is a string and accepts one of the following values:
47
+
- : Defines the vertical alignment of the element within the scrollable ancestor container. Its value can be one of the following:
46
48
-`start`: Aligns the element's top edge with the top of the scrollable container, making the element appear at the start of the visible area vertically.
47
49
-`center`: Aligns the element vertically at the center of the scrollable container, positioning it in the middle of the visible area.
48
50
-`end`: Aligns the element's bottom edge with the bottom of the scrollable container, placing the element at the end of the visible area vertically.
49
-
-`nearest`: Scrolls the element to the nearest edge in the vertical direction. If the element is closer to the top edge of the scrollable container, it will align to the top; if it's closer to the bottom
50
-
edge, it will align to the bottom. This minimizes the scrolling distance.
51
-
- Defaults to `start`.
51
+
-`nearest`: Scrolls the element to the nearest edge in the vertical direction. If the element is closer to the top edge of the scrollable container, it will align to the top; if it's closer to the bottom edge, it will align to the bottom. This minimizes the scrolling distance.
52
+
53
+
The default is `start`.
54
+
55
+
-`container` {{optional_inline}}
56
+
- : Defines the scrollable ancestor container. Its value can be one of the following:
57
+
-`all`: All scrollable containers are impacted (including the viewport).
58
+
-`nearest`: Only the nearest scrollable container is impacted by the scroll.
59
+
60
+
The default is `all`.
61
+
52
62
-`inline` {{optional_inline}}
53
-
- : Defines the horizontal alignment of the element within the scrollable ancestor container. This option is a string and accepts one of the following values:
63
+
- : Defines the horizontal alignment of the element within the scrollable ancestor container. Its value can be one of the following:
54
64
-`start`: Aligns the element's left edge with the left of the scrollable container, making the element appear at the start of the visible area horizontally.
55
65
-`center`: Aligns the element horizontally at the center of the scrollable container, positioning it in the middle of the visible area.
56
66
-`end`: Aligns the element's right edge with the right of the scrollable container, placing the element at the end of the visible area horizontally.
57
67
-`nearest`: Scrolls the element to the nearest edge in the horizontal direction. If the element is closer to the left edge of the scrollable container, it will align to the left; if it's closer to the right edge, it will align to the right. This minimizes the scrolling distance.
0 commit comments