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
The <i>static position</i> of an absolutely positioned child of a flex container
681
-
(the position when the 'top'/'right'/'bottom'/'left' properties are ''auto''), then,
682
-
is the final position of its corresponding placeholder, after flex layout has been performed.
683
-
684
-
<pclass='note'>
685
-
Note: In most cases,
686
-
this means that absolutely-positioned items have no effect on flex layout.
687
-
However, when the flex container has ''justify-content: space-between'' or ''justify-content: space-around'',
688
-
the anonymous flex items wrapping a placeholder will cause there to be two packing spaces
689
-
where there would otherwise be only one,
690
-
possibly resulting in increased space between two "real" items.
662
+
<pid='abspos-items'>
663
+
The <ahref="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width">hypothetical box</a> used to calculate the <i>static position</i> [[!CSS21]]
664
+
of an absolutely-positioned flex item corresponds to
665
+
the content-box of the flex container.
666
+
(This effectively defines the <i>static position</i> as
667
+
the head start content-box corner of the flex container.)
668
+
As in block layout, the absolutely-positioned box has no effect
669
+
on the layout of surrounding content.
691
670
692
671
<h3id='item-margins'>
693
672
Flex Item Margins</h3>
@@ -698,7 +677,6 @@ <h3 id='item-margins'>
698
677
and to push adjacent flex items apart;
699
678
see <ahref="#auto-margins">Aligning with ''auto'' margins</a>.
0 commit comments