Skip to content

Commit a4c445e

Browse files
committed
[css-sizing] Add a 'behaves as auto' term to Sizing to unify computed/behaves behavior for width/height. Part of w3c#1051.
1 parent 00339f3 commit a4c445e

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

css-sizing-3/Overview.bs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,18 @@ New Keywords for 'width' and 'height'</h3>
302302
this is true automatically.
303303
For Block layout, this means using ''display: flow-root;''.
304304

305-
<p class='note'>
306-
Note that percentages resolved against the intrinsic sizes
307-
(''width/max-content'', ''width/min-content'', ''width/fit-content'')
308-
will compute to ''width/auto'',
309-
<a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property">as defined by CSS 2.1</a>. [[!CSS2]]
305+
Note: Percentages resolved against the intrinsic sizes
306+
(''width/max-content'', ''width/min-content'', ''width/fit-content'')
307+
will behave as ''width/auto''.
308+
<!-- <a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property">as defined by CSS 2</a>. [[!CSS2]] -->
309+
<!-- Restore the above when 2.1 is updated and published with the new "behaves as" text we resolved on. -->
310+
311+
To have a common term for both when
312+
'width'/'height' computes to ''width/auto''
313+
and when it is defined to behave as ''width/auto''
314+
(as in the case above),
315+
the property is said to <dfn export lt="behave as auto|behaving as auto">behave as auto</dfn>
316+
in both of these cases.
310317

311318
<h3 id='the-contain-floats-value'>
312319
Containing Floats</h3>

0 commit comments

Comments
 (0)