Skip to content

Commit

Permalink
[css-values-5] Require calc-size() calculation types to match <length…
Browse files Browse the repository at this point in the history
…-percentage> (#10736)
  • Loading branch information
cdoublev authored Aug 13, 2024
1 parent 6a9acf1 commit c955f5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css-values-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,8 @@ The first argument given is the <dfn>calc-size basis</dfn>,
and the second is the <dfn>calc-size calculation</dfn>.
For either argument,
if a <<calc-sum>> is given,
it must resolve to a <<length>>.
its [=CSSNumericValue/type=] must [=CSSNumericValue/match=] <<length-percentage>>,
and it must resolve to a <<length>>.

Within the [=calc-size calculation=],
if the [=calc-size basis=] is not ''calc-size()/any'',
Expand Down

0 comments on commit c955f5a

Please sign in to comment.