Skip to content

scroll, scrollIntoView, scrollTo, scrollBy now return promises #4134

Description

@captainbrosset

Specification

https://drafts.csswg.org/cssom-view

Description

scrollTo and scrollBy now return promises, so you can wait until a smooth scrolling operation is done before doing something else.

Documentation

https://github.com/explainers-by-googlers/promisify-scroll

Browser support

Shipping with Chromium 150: https://chromestatus.com/feature/5082138340491264

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions