[css-values-4] Should <percentage>
be invalid in calculations matching <number>
?
#9661
Labels
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
css-values-4
Current Work
I suspect that determining the type of
<percentage>
should be a failure when the grammar does not accept<percentage>
, instead of defaulting to[percent: 1]
:calc(1% / 1%)
should be an invalidz-index
because its grammar only accepts<number>
calc(1% / 1% * 1px)
should be a validwidth
because its grammar accepts both<length>
and<percentage>
, which resolves to a<length>
based on the width or height of the containing blockNote: I assume that the type of
calc(1% / 1%)
as a value forz-index
is currently[percent: 0]
, which matches<number>
.Or am I missing something?
The text was updated successfully, but these errors were encountered: