You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-sizing-3/Overview.bs
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -521,14 +521,20 @@ Stretch-fit Sizing</h3>
521
521
* Otherwise, the percentage is resolved against the containing block’s size.
522
522
(The containing block’s size is not re-resolved based on the resulting size of the box;
523
523
the contents might thus overflow or underflow the containing block).
524
-
525
524
526
525
Note: These rules specify the previously-undefined behavior of this cyclic case in <a href="https://www.w3.org/TR/CSS2/visudet.html#the-width-property">CSS2§10.2</a>.
527
526
Note also, the behavior in <a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property">CSS2§10.5</a>
528
527
is superseded in their respective specifications for layout modes
529
528
(such as <a href="http://www.w3.org/TR/css-flexbox/">flex layout</a>)
530
529
not described in CSS2.
531
530
531
+
Similarly, percentage margins and padding behave as zero in such cyclic cases
532
+
when calculating the containing block's size,
533
+
and then resolve when calculating the used sizes and positions of its content.
534
+
(This defines the previously-undefined behavior of this cyclic case in
0 commit comments