8000 [cssom-view-1] Differentiate programmatic directional scrolls from absolute scrolls · Issue #12394 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[cssom-view-1] Differentiate programmatic directional scrolls from absolute scrolls #12394
Open
@flackr

Description

@flackr

The cssom-view-1 spec currently specifies both scrollTo and scrollBy as if they both invoke the scroll method with the left and top set accordingly. However, I think that we should differentiate these APIs as relative directional scrolls and absolute scrolls as far as they affect several other APIs. The legacy scrollLeft and scrollTop should probably be treated as absolute scrolls as that is usually what they are used for.

Absolute scrolls:

Relative / directional scrolls:

Proposed resolution:
Define a consistent distinction between absolute scrolls and relative scrolls that can be implemented and shared across these affected specs.
Absolute scrolls: scrollTo, scrollLeft, scrollTop, anchor fragment scrolls, scroll anchoring, find in page scrolls, scroll thumb dragging?
Relative scrolls: scrollBy, arrow key, page up/down, spacebar, home/end?, scrollbar track clicks, scrollbar buttons

Any other ways of scrolling we need to categorize?

@tabatkins

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0