Gecko:CSSScrollSnapping: Difference between revisions

Jump to navigation Jump to search
Line 16: Line 16:


For an element E with 'scroll-snap-vertical' not 'none', the set of ''vertical snapping positions'' is the union of
For an element E with 'scroll-snap-vertical' not 'none', the set of ''vertical snapping positions'' is the union of
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' is 'margin-top', the top edge of the first margin-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' contains 'margin-top', the top edge of the first margin-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' is 'top', the to edge of the first border-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' contains 'top', the to edge of the first border-box of D if there is one.
* Zero.
* Zero.


For an element E with 'scroll-snap-vertical' not 'none', the set of ''horizontal snapping positions'' is the union of
For an element E with 'scroll-snap-vertical' not 'none', the set of ''horizontal snapping positions'' is the union of
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' is 'margin-left', the left edge of the first margin-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' contains 'margin-left', the left edge of the first margin-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' is 'left', the left edge of the first border-box of D if there is one.
* For each descendant D of E for which E is the nearest scrollable ancestor, where D's value of 'scroll-snap-edge' contains 'left', the left edge of the first border-box of D if there is one.
* Zero.
* Zero.


1,295

edits

Navigation menu