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
#3074 removed "instant" from the IDL, arguing that it's removed from scroll-behavior CSS property. But that enum value is not for CSS but for scroll APIs and is still supported on all engines including Gecko, Blink, and WebKit. It's behavior is different from "auto", per https://w3c.github.io/csswg-drafts/cssom-view-1/#perform-a-scroll:
If the user agent honors the scroll-behavior property and one of the following are true:
behavior is "auto" and element is not null and its computed value of the scroll-behavior property is smooth
behavior is smooth
...then perform a smooth scroll of box to position. Once the position has finished updating, emit the scrollend event. Otherwise, perform an instant scroll of box to position. After an instant scroll emit the scrollend event.
Passing "instant" allows devs to force instant scroll regardless of scroll-behavior property.
Hi @tabatkins, I think you were confused there, what do you think?
The text was updated successfully, but these errors were encountered:
#3074 removed "instant" from the IDL, arguing that it's removed from
scroll-behavior
CSS property. But that enum value is not for CSS but for scroll APIs and is still supported on all engines including Gecko, Blink, and WebKit. It's behavior is different from"auto"
, per https://w3c.github.io/csswg-drafts/cssom-view-1/#perform-a-scroll:Passing
"instant"
allows devs to force instant scroll regardless ofscroll-behavior
property.Hi @tabatkins, I think you were confused there, what do you think?
The text was updated successfully, but these errors were encountered: