Skip to content

scroll offset values should use length-percentage type to allow calc() #4340

@AmeliaBR

Description

@AmeliaBR

The startScrollOffset and endScrollOffset points on a scroll timeline are currently defined with the following CSS grammar:

auto | <length> | <percentage>

That should be

auto | <length-percentage>

in order to allow calc() expressions combining lengths and percentages, such as calc(100% - 5rem).

Same for the <scroll-offset> part of the scroll() function definition.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions