Skip to content

Commit 6622d44

Browse files
committed
[css-sizing-3] Simplify the behavior around fit-content(%) to just defer to normal % behavior, as suggested by Oriol in #3731.
1 parent aaade7a commit 6622d44

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

css-sizing-3/Overview.bs

+4-8
Original file line numberDiff line numberDiff line change
@@ -468,15 +468,11 @@ Sizing Values: the <<length-percentage>>, ''width/auto'' | ''max-width/none'', '
468468
Use the fit-content formula
469469
with the <a>available space</a> replaced by the specified argument,
470470
i.e.
471-
<code>min(''width/max-content'', max(''width/min-content'', <<length-percentage>>))</code>.
471+
<code>min(''width/max-content'', max(''width/min-content'', <<length-percentage>>))</code>,
472+
where the <<length-percentage>> argument is resolved
473+
exactly as for <<length-percentage>> values standing alone.
472474

473-
For <a>intrinsic size contributions</a>,
474-
''fit-content(<<length>>)'' behaves as the resulting length;
475-
''width/fit-content()'' containing a <<percentage>> behaves
476-
as ''width/min-content'' for <a>min-content contributions</a>,
477-
and as ''width/max-content'' for <a>max-content contributions</a>.
478-
479-
Negative values are invalid.
475+
Negative <<length-percentage>> values are invalid.
480476
</dl>
481477

482478
In all cases,

0 commit comments

Comments
 (0)