Skip to content

Commit 4c72f22

Browse files
committed
[css-sizing-3] Use clamp() notation to define fit-content. w3c#4006
1 parent 6f59774 commit 4c72f22

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

css-sizing-3/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ Auto Box Sizes</h3>
244244
<dt><dfn>fit-content block size</dfn>
245245
<dd>
246246
If the <a>available space</a> in a given axis is <a>definite</a>,
247-
equal to <code>min(<a>max-content size</a>, max(<a>min-content size</a>, <a>stretch-fit size</a>))</code>.
247+
equal to <code>clamp([=min-content size=], [=stretch-fit size=], [=max-content size=]
248+
(i.e. <code>max(<a>min-content size</a>, min(<a>max-content size</a>, <a>stretch-fit size</a>))</code>).
248249
Otherwise, equal to the <a>max-content size</a> in that axis.
249250

250251
Note: This is called the “shrink-to-fit” width in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>

0 commit comments

Comments
 (0)