Skip to content

[css-scroll-snap] Do scroll-margin-* properties accept percentages? #3289

Closed
@ewilligers

Description

@ewilligers

Should the value accept percentages, or should the computed value exclude percentages?

https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-top

Name: scroll-margin-top, scroll-margin-right, scroll-margin-bottom, scroll-margin-left
Value: <length>
Percentages: n/a
Computed value: a computed <length-percentage> value

https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-block-start

Name: scroll-margin-block-start, scroll-margin-inline-start, scroll-margin-block-end, scroll-margin-inline-end
Value: <length>
Percentages: n/a
Computed value: a computed <length-percentage> value

https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin

Name: scroll-margin
Value: <length>{1,4}
Percentages: n/a
Computed value: per side, a computed <length-percentage> value

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