Skip to content

[css-animations-2][scroll-animations-1] Is view() meant to allow multiple view-timeline-inset values? #8519

@SebastianZ

Description

@SebastianZ

The syntax of the view() function allows <'view-timeline-inset'> values. And the syntax for view-timeline-inset is defined as a comma-separated list of values.

So, as it stands, the syntax currently allows values like view(block 100px 200px, 10% 20%).

I assume view() was intended to only take one set of view timeline insets. Correct?

If so, this could be solved by introducing a new <single-view-timeline-inset> data type that refers to [ auto | <length-percentage> ]{1,2}. And that data type could then be used for view-timeline-inset as <single-view-timeline-inset># and for <view()> as view( [ <axis> || <single-view-timeline-inset> ]? ).

Sebastian

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