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
<p>The '<ahref="#scroll-behavior">scroll-behavior</a>' property specifies the scrolling behavior for a <ahref="#scrolling-box">scrolling box</a>, when scrolling happens due to navigation or
1936
-
CSSOM scrolling APIs. Scrolls that are performed by the user are not affected by this property. When this property is specified on the root element, it applies
1937
-
to the <ahref="#viewport">viewport</a> instead.
1935
+
<p>The '<ahref="#scroll-behavior">scroll-behavior</a>' property specifies the scrolling behavior for a <ahref="#scrolling-box">scrolling box</a>,
1936
+
when scrolling happens due to navigation or CSSOM scrolling APIs.
1937
+
Any other scrolls, e.g. those that are performed by the user, are not affected by this property.
1938
+
When this property is specified on the root element, it applies to the <ahref="#viewport">viewport</a> instead.
1938
1939
1939
1940
<pclass="note">The '<ahref="#scroll-behavior">scroll-behavior</a>' property of the HTML <codetitle="">body</code> element is <em>not</em> propagated to the viewport.
Copy file name to clipboardExpand all lines: cssom-view/Overview.src.html
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1879,8 +1879,8 @@ <h3>Smooth Scrolling: The 'scroll-behavior' Property</h3>
1879
1879
1880
1880
<preclass=propdef>
1881
1881
Name: <dfn>scroll-behavior</dfn>
1882
-
Value: instant | smooth
1883
-
Initial: instant
1882
+
Value: auto | smooth
1883
+
Initial: auto
1884
1884
Applies to: <spantitle="scrolling box">scrolling boxes</span>
1885
1885
Inherited: no
1886
1886
Computed value: specified value
@@ -1889,14 +1889,15 @@ <h3>Smooth Scrolling: The 'scroll-behavior' Property</h3>
1889
1889
Canonical Order: per grammar
1890
1890
</pre>
1891
1891
1892
-
<p>The '<span>scroll-behavior</span>' property specifies the scrolling behavior for a <span>scrolling box</span>, when scrolling happens due to navigation or
1893
-
CSSOM scrolling APIs. Scrolls that are performed by the user are not affected by this property. When this property is specified on the root element, it applies
1894
-
to the <span>viewport</span> instead.
1892
+
<p>The '<span>scroll-behavior</span>' property specifies the scrolling behavior for a <span>scrolling box</span>,
1893
+
when scrolling happens due to navigation or CSSOM scrolling APIs.
1894
+
Any other scrolls, e.g. those that are performed by the user, are not affected by this property.
1895
+
When this property is specified on the root element, it applies to the <span>viewport</span> instead.
1895
1896
1896
1897
<pclass=note>The '<span>scroll-behavior</span>' property of the HTML <codetitle>body</code> element is <em>not</em> propagated to the viewport.
0 commit comments