Skip to content

Commit 65e6e23

Browse files
committed
[css-sizing-4] Wording tweak to distinguish assuming sizes for content vs children better.
1 parent f91643f commit 65e6e23

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

css-sizing-4/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,14 @@ Overriding Contained Intrinsic Sizes: the 'contain-intrinsic-size' property</h3>
413413

414414
This property allows elements with [=size containment=] to specify
415415
an <dfn export>explicit intrinsic inner size</dfn>,
416-
causing the box to size as if it had contents
417-
with a combined width and height
416+
causing the box to size as if its content
417+
totals to a width and height
418418
matching the specified [=explicit intrinsic inner size=]
419419
(rather than sizing as if it were empty).
420-
420+
421+
Note: This is not always equivalent
422+
to laying out as if the element had one child of the specified [=explicit intrinsic inner size=].
423+
421424
Note: An element with [=size containment=] is laid out as if it had no contents [[!CSS-CONTAIN-1]],
422425
which in many cases this will cause the element to collapse to zero inner height.
423426
This can be corrected with an explicit 'height' chosen to show the expected contents,

0 commit comments

Comments
 (0)