Skip to content

[css-scroll-snap-1] Drop 'scroll-padding: auto'? #12943

@fantasai

Description

@fantasai

It's not clear to me that implementations are doing anything particularly interesting with the initial value of scroll-padding, auto. Certainly it's not automatically avoiding sticky headers...

Should we drop this value and set the initial value to 0? And maybe consider adding it back in L2 as a non-initial value that does something useful and automatic?

FWIW, the initial value had two purposes:

  • Reflect the amount of default overlap between paging operations / default spacing around scroll-into-view operations so that authors could then control it explicitly by setting a different value. (If we want this, maybe we can call it normal.)
  • Try to heuristically account for fixed headers/footers that obscure the content.

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