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
Copy file name to clipboardExpand all lines: css-scroll-snap-2/Overview.bs
+42-35Lines changed: 42 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -47,62 +47,69 @@ Setting Where Scroll Starts {#properties-on-the-scroll-container}
47
47
The 'scroll-start' property {#scroll-start}
48
48
-------------------------------------------
49
49
50
-
<pre class="propdef">
50
+
<pre class="propdef shorthand">
51
51
Name: scroll-start
52
-
Value: auto | [end | center] | <<length-percentage>>
53
-
Initial: none
54
-
Applies to: all elements
55
-
Inherited: no
56
-
Percentages: n/a
57
-
Computed value: specified keyword(s)
58
-
Animation type: discrete
52
+
Value: [ auto | start | end | center | <<length-percentage>> ]{1,2}
59
53
</pre>
60
54
61
-
This property is a shorthand property that sets all of the scroll-start-* longhands in one declaration. It does not work like 'margin', where a value is repeated to all sides. {{scroll-start: 200px}} is not {{scroll-start: 200px 200px}}, it's {{scroll-start: 200px 0}}. Inline is first, followed by block.
55
+
This property is a shorthand property that sets all of the scroll-start-* longhands in one declaration.
56
+
The first value defines the scroll starting point in the block axis,
57
+
the second sets it in the inline axis.
58
+
If the second value is omitted, it defaults to ''scroll-start/start''.
0 commit comments