Skip to content

Commit 0358eb0

Browse files
committed
[css-sizing] Fix one usage to 'behaves as auto', and add a catch-all note to redirect appropriately.
1 parent a4c445e commit 0358eb0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

css-sizing-3/Overview.bs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,14 @@ New Keywords for 'width' and 'height'</h3>
312312
'width'/'height' computes to ''width/auto''
313313
and when it is defined to behave as ''width/auto''
314314
(as in the case above),
315-
the property is said to <dfn export lt="behave as auto|behaving as auto">behave as auto</dfn>
315+
the property is said to <dfn export lt="behave as auto|behaves as auto|behaving as auto">behave as auto</dfn>
316316
in both of these cases.
317317

318+
Note: Legacy spec prose defining layout behavior
319+
might explicitly refer to 'width'/'height' having a computed value of ''width/auto'' as a condition;
320+
these should be interpreted as meaning <a>behaves as auto</a>,
321+
and reported to the CSSWG for updating.
322+
318323
<h3 id='the-contain-floats-value'>
319324
Containing Floats</h3>
320325

@@ -470,7 +475,7 @@ Stretch-fit Sizing</h3>
470475

471476
Percentages specify sizing of a box with respect to the box’s <a>containing block</a>.
472477
When calculating the <a>intrinsic size contribution</a> of the box,
473-
intrinsic sizes are instead treated as ''width/auto''.
478+
intrinsic sizes instead behave as ''width/auto''.
474479

475480
<div class="example">
476481
For example, in the following markup:
@@ -484,7 +489,7 @@ Stretch-fit Sizing</h3>
484489
</pre>
485490

486491
When calculating the width of the outer div,
487-
the inner div is treated as ''width: auto'',
492+
the inner div behaves as ''width: auto'',
488493
so the outer div sets itself to the width of the long word.
489494
Since the outer div's width didn't depend on "real" layout,
490495
though, it's treated as <a>definite</a>
@@ -493,9 +498,10 @@ Stretch-fit Sizing</h3>
493498
</div>
494499

495500
Although this may require an additional layout pass to re-resolve percentages in some cases,
496-
the ''min-width/auto'', ''min-width/min-content'', ''min-width/max-content'', and ''min-width/fit-content'' values
497-
of 'min-width' and 'min-height'
498-
do not prevent the resolution of percentage sizes of the box’s contents.
501+
a 'min-width' or 'min-height'
502+
with a value of ''min-width/min-content'', ''min-width/max-content'', ''min-width/fit-content'',
503+
or ''min-width/auto'' (or otherwise <a>behaving as auto</a>)
504+
does not prevent the resolution of percentage sizes of the box’s contents.
499505
However, in order to prevent cyclic sizing in the general case,
500506
percentages do not otherwise resolve against <a>indefinite</a> sizes,
501507
and instead are treated as <css>auto</css>.

0 commit comments

Comments
 (0)