Skip to content

Commit 4ede605

Browse files
committed
[css-sizing] Address Amelia's concerns in w3c#1609.
1 parent 6cb4910 commit 4ede605

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

css-sizing-3/Overview.bs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,10 @@ Intrinsic Sizes</h3>
393393
is the size it would have as an
394394
''width/auto''-sized (in that axis) float in an infinitely-sized containing block.
395395
(In other words, the maximum size it has when sized as “shrink-to-fit”.)
396-
If this size would depend on the size of the containing block
397-
(as it does for images with an intrinsic aspect ratio but no intrinsic size)
396+
For replaced elements,
397+
if this size would depend on the size of the containing block
398+
(as it does for images with an intrinsic aspect ratio but no intrinsic size,
399+
see <a href="https://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width">CSS2&sect;10.3.2</a>)
398400
and therefore can't be calculated against an infinitely-sized containing block
399401
then:
400402

@@ -420,12 +422,23 @@ Intrinsic Sizes</h3>
420422
as needed.
421423
</dl>
422424

425+
Since a block-level or inline-level replaced element
426+
whose 'height' or 'width' <a>behaves as auto</a>
427+
is effectively defined to use its <a>max-content size</a>
428+
(<a href="https://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width">CSS2&sect;10.3.2</a>),
429+
this specification applies the rules above
430+
to the undefined case of a replaced element
431+
whose 'height' and 'width' both <a>behave as auto</a>.
432+
423433
Note: This specification does not define how to determine
424434
the size of a float.
425435
Please refer to [[CSS2]],
426436
the relevant CSS specification for that display type,
427437
and/or existing implementations
428438
for further details.
439+
A future specification will define this in detail,
440+
replacing the CSS2 “definition”,
441+
such as it is.
429442

430443
<h3 id="intrinsic-contribution">
431444
Intrinsic Contributions</h3>

0 commit comments

Comments
 (0)