Skip to content

[css-values-5] A more complete syntax definition for calc-size() to also cover the size keyword #13158

@romainmenke

Description

@romainmenke

Current definition is:

<calc-size()> = calc-size( <calc-size-basis>, <calc-sum> )

<calc-size-basis> = [ <size-keyword> | <calc-size()> | any | <calc-sum> ]

And in prose:

Within the calc-size calculation, if the calc-size basis is not any, the keyword size is allowed. This keyword is a <length>, and resolves at used value time.

If I am reading the spec correctly we could also define the syntax as:

<calc-size()> = calc-size( [ [ <calc-size-basis> , [ <calc-sum> | size ] ] | [ any , <calc-sum> ] ] )

<calc-size-basis> = [ <size-keyword> | <calc-size()> | <calc-sum> ]

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