Skip to content

[scroll-animations-1] CSSNumberish time values to represent types. #7102

@flackr

Description

@flackr

In #6674 the rewritten API uses doubles to represent time values for many of the properties. However, the current scroll-animations-1 spec switched to using CSSNumberish in #4890 when we decided that the different time units should have different types. Using CSSNumberish allows us to avoid accidentally using one type in another context, and we can use doubles for backwards compatibility with time-based animations.

I think we should continue to use CSSNumberish (either pixels or percentages depending on which way we go on #7045) for time values on these scroll timeline animations.

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