Gecko:CSSScrollSnapping: Difference between revisions

Jump to navigation Jump to search
Line 11: Line 11:
A scrollable element is one for which 'overflow-x' or 'overflow-y' is 'scroll' or 'auto'.
A scrollable element is one for which 'overflow-x' or 'overflow-y' is 'scroll' or 'auto'.


<tt>scroll-snap-edge: none | (margin-left || margin-top || left || top)</tt>
<tt>scroll-snap-edge: none | [ margin-left || margin-top || left || top ]</tt>


This property defines which (if any) edges of the first CSS box for the element contribute to the allowable snapping positions for the nearest scrollable ancestor.
This property defines which (if any) edges of the first CSS box for the element contribute to the allowable snapping positions for the nearest scrollable ancestor.
1,295

edits

Navigation menu