Skip to content

[css-scroll-snap-2] scroll-start-target: auto doesn't match general meaning of auto #11173

@DavMila

Description

@DavMila

The scroll-start-target spec specifies 2 keywords for the scroll-start-target property:

  • none, meaning: this element is not to be used to determine the initial scroll position of its nearest scroll container, and
  • auto, meaning: this element should be used to determine the initial scroll position of its nearest scroll container.

The use of auto in this way is a bit of a departure from what auto means in CSS, i.e. "the UA should do what it thinks is best."

Should we change auto to a different keyword? Here are a few we could consider: on-first-appearance or align or active or visible. My preference would be align.

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