Skip to content

[scroll-animations-1] ViewTimeline values of startOffset/endOffset in RTL writing mode #7752

Closed
@ydaniv

Description

@ydaniv

Currently the spec says:

Note: The value of startOffset can be greater than endOffset, for example in the horizontal axis in a right-to-left (rtl) writing mode.

Which would render scroll-animations very awkward when actually having to deal with in RTL mode. Even more so if we're considering that the names of these properties are logical (start/end) and they should work the same for any writing mode.

The issue noted below in the spec says:

This makes the offsets compatible with the way scrollLeft and scrollTop work, which go negative from zero in RTL scroll containers, is this how we want it to work here?

Which seems less relevant since scrollTop/Left are in fact non-logical APIs.

So, I'd expect the logical APIs, startOffset and endOffset, to behave the same depending on writing mode.

cc @fantasai @flackr

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