Skip to content

[css-transforms-2] Potentially invalid syntax for perspective() #7582

Closed
@pyoor

Description

@pyoor

The CSS Transforms 2 spec currently defines the perspective() function as:
perspective( <length [0,∞]> | none )

In the syntax above, the functional notation accepts one of two arguments (using the single bar operator). Now, I can't find anything specifically in css-values-5 that forbids this, but I believe that these arguments should be wrapped in a group as in:
perspective( [ <length [0,∞]> | none ] )

Could some please provide clarification on if this actually is an issue?

: <span class='prod'><dfn>perspective()</dfn> = perspective( <<length [0,∞]>> | <dfn id="valdef-perspective-func-none" dfn-type="value" for="perspective()">none</dfn> )</span>

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