Closed
Description
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?
calc-mix(0%, 1px, 2px)
in a<length-percentage>
contextcalc-mix(calc(0%), 1px, 2px)
in a<length-percentage>
contextcalc-mix(--timeline, 1px, 2px)
My respective guesses:
[percentage → 1]
[percentage → 1]
[]
In my opinion, the type of calc(0%)
matching <progress>
should always be [percentage → 1]
, whatever the "higher" context is.