Skip to content

[css-scroll-snap] scroll-padding-block/inline and auto #3189

Closed

Description

@ewilligers

The following properties have auto as their initial value, but their grammars only accept <length> values:

  • scroll-padding-block
  • scroll-padding-block-end
  • scroll-padding-block-start
  • scroll-padding-inline
  • scroll-padding-inline-end
  • scroll-padding-inline-start

https://drafts.csswg.org/css-scroll-snap-1/#padding-longhands-logical

Activity

  1. fantasai commented on Oct 3, 2018

    @fantasai
    Collaborator

    Good catch! Fixed, thanks so much for your attention to detail!!

  2. ewilligers commented on Oct 4, 2018

    @ewilligers
    ContributorAuthor

    Two shorthands still need fixing:

    • scroll-padding-block
    • scroll-padding-inline
  3. fantasai commented on Oct 5, 2018

    @fantasai
    Collaborator

    OK, I think it's good now?

  4. ewilligers commented on Oct 5, 2018

    @ewilligers
    ContributorAuthor

    The grammar for scroll-padding uses [ ].

    I suspect scroll-padding-block and scroll-padding-inline need square brackets to, so they can accept auto 10px and 10px auto and auto auto.

  5. fantasai commented on Oct 8, 2018

    @fantasai
    Collaborator

    Man, even typoed the commit message and included a grammar error. I can't do anything right in this issue. T_T

    Is the spec correct yet, @ewilligers ?

  6. ewilligers commented on Oct 9, 2018

    @ewilligers
    ContributorAuthor

    Looks good, thank you.

  7. added a commit that references this issue on Nov 10, 2018
  8. added a commit that references this issue on Nov 11, 2018
  9. added a commit that references this issue on Sep 16, 2025
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