Skip to content

[scroll-animations] ViewTimelineOptions.inset should use CSSKeywordish over CSSKeywordValue #11477

Open
@graouts

Description

@graouts

The inset property of the ViewTimelineOptions is currently defined as (DOMString or sequence<(CSSNumericValue or CSSKeywordValue)>) inset = "auto";. This means that setting that value to "auto" is valid but not setting it to ["auto", "auto"].

I suggest we use CSSKeywordish instead of CSSKeywordValue so that strings can be used as well as CSSKeywordValue. As it turns out, this is already what is being tested in scroll-animations/view-timelines/view-timeline-inset.html and what Chromes implements.

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