Skip to content

Commit 45d4464

Browse files
committed
[css-sizing-3] Revert commit that made block-axis min/max-content compute to 'auto'. 'auto' invokes too much magic, and this precludes non-flow layouts from doing useful things with min/max-content. #3973.
1 parent 67f9668 commit 45d4464

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

css-sizing-3/Overview.bs

+10-12
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Auto Box Sizes</h3>
234234

235235
: <dfn>min-content block size</dfn>
236236
:: In general,
237-
and definitely for block-level and inline-level boxes,
237+
and definitely for [=block containers=], tables, and [=inline boxes=],
238238
this is equivalent to the <a>max-content block size</a>.
239239

240240
<dt><dfn>fit-content size</dfn>
@@ -248,7 +248,7 @@ Auto Box Sizes</h3>
248248
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>
249249
and <a href="https://www.w3.org/TR/css3-multicol/#pseudo-algorithm">CSS Multi-column Layout § 3.4</a>.
250250

251-
<dd><dfn>intrinsic size</dfn>
251+
<dt><dfn>intrinsic size</dfn>
252252
<dd>
253253
A <a>max-content size</a> or <a>min-content size</a>,
254254
i.e. a size arising primarily from the size of the content.
@@ -446,30 +446,28 @@ Sizing Values: the <<length-percentage>>, ''width/auto'' | ''max-width/none'', '
446446
<dd>
447447
If specified for the inline axis,
448448
use the <a>min-content inline size</a>;
449-
otherwise behaves as the property’s <a>initial value</a>.
449+
otherwise compute to ''width/auto''.
450450

451451
<dt><dfn>max-content</dfn>
452452
<dd>
453453
If specified for the inline axis,
454454
use the <a>max-content inline size</a>;
455-
otherwise behaves as the property’s <a>initial value</a>.
455+
otherwise compute to ''width/auto''.
456456
<!--
457457
<dt><dfn>fit-content</dfn>
458458
<dd>
459-
If specified for the inline axis,
460-
use the <a>fit-content inline size</a>
459+
Use the <a>fit-content inline size</a> or <a>fit-content block size</a>,
460+
as appropriate to the writing mode,
461461
i.e.
462-
<code>min(''width/max-content'', max(''width/min-content'', ''width/stretch''))</code>;
463-
otherwise behaves as the property’s <a>initial value</a>.
462+
<code>min(''width/max-content'', max(''width/min-content'', ''width/stretch''))</code>.
464463
-->
465464
<dt><dfn>fit-content(<<length-percentage>>)</dfn>
466465
<dd>
467-
If specified for the inline axis,
468-
use the fit-content formula
466+
Use the fit-content formula
469467
with the <a>available space</a> replaced by the specified argument,
470468
i.e.
471-
<code>min(''width/max-content'', max(''width/min-content'', <<length-percentage>>))</code>;
472-
otherwise behaves as the property’s <a>initial value</a>.
469+
<code>min(''width/max-content'', max(''width/min-content'', <<length-percentage>>))</code>.
470+
473471
For <a>intrinsic size contributions</a>,
474472
''fit-content(<<length>>)'' behaves as the resulting length;
475473
''width/fit-content()'' containing a <<percentage>> behaves

0 commit comments

Comments
 (0)