Skip to content

Commit

Permalink
[css-values-5][editorial] Rephrase the calc-size()/non-calc-size() in…
Browse files Browse the repository at this point in the history
…terpolation paragraph for clarity. #10220
  • Loading branch information
tabatkins committed Apr 23, 2024
1 parent 3e64a48 commit a6db2ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions css-values-5/Overview.bs
Expand Up @@ -1883,9 +1883,13 @@ so the ''calc-size()'' has to masquerade as one or the other.
This, unfortunately, means you can't transition between keywords,
like going from ''width/auto'' to ''width/min-content''.

As well, a ''calc-size()'' can be interpolated
with a <<length-percentage>> or an <<intrinsic-size-keyword>>,
behaving as if the second value were ''calc-size(<var ignore>value</var>)''.
Some ''calc-size()'' values can also be interpolated
with a <<length-percentage>> or an <<intrinsic-size-keyword>>.
To determine whether the values can interpolate
and what the interpolation behavior is,
treat the non-''calc-size()'' value
as ''calc-size( <var ignore>value</var> )''
and apply the rules above.

<div class=example>
For example, ''calc-size()'' allows interpolation to/from ''height: auto'':
Expand Down

0 comments on commit a6db2ca

Please sign in to comment.