Skip to content

[css-align] align-content and scroll coordinates #9807

Closed

Description

@fantasai

In https://www.w3.org/TR/css-align-3/#overflow-scroll-position we write:

None of this changes how scroll coordinates are assigned: the origin is still where it would be in a start-aligned container, it just might be initially positioned outside the scrollport.

Wrt scroll coordinates, if we are referring to .scrollTop/.scrollLeft, I noticed when testing flex-flow: row-reverse etc that the initial scroll position corresponds to zero, so I think we should adjust the spec for alignment to be consistent with that: the initial scroll position corresponds to zero, even if that position is scrolled to the writing-mode–relative "end" of the scroller.

Activity

  1. frivoal commented on Jan 17, 2024

    @frivoal
    Collaborator

    Consistency between row-reverse and alignment seems desirable. I think I could go either way about which of the origin and the initial position gets to be the 0 coordinate, but having the same answer in both cases sounds like the right thing to do.

    Are we constrained by compat?

  2. Loirooriol commented on Jan 17, 2024

    @Loirooriol
    Contributor

    I think this is what was being discussed in #4957 (comment)

  3. bfgeek commented on Jan 17, 2024

    @bfgeek

    I agree with @Loirooriol - this is what was being described in that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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