Skip to content

[css-values-5] How to determine the type of <progress> in calc-mix()? #10770

Closed
@cdoublev

Description

@cdoublev

The type of calc-mix() must be made consistent with the type of its <progress>, which is defined with:

<progress> = [<percentage> | <number> | <'animation-timeline'>] && [by <easing-function>]?

What is the type of <progress> in these examples?

  1. calc-mix(0%, 1px, 2px) in a <length-percentage> context
  2. calc-mix(calc(0%), 1px, 2px) in a <length-percentage> context
  3. calc-mix(--timeline, 1px, 2px)

My respective guesses:

  1. [percentage → 1]
  2. [percentage → 1]
  3. []

In my opinion, the type of calc(0%) matching <progress> should always be [percentage → 1], whatever the "higher" context is.

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