@@ -559,25 +559,53 @@ Its syntax is:
559
559
or is not an [=absolutely-positioned=] element,
560
560
this value has no effect.
561
561
562
- Otherwise, the property selects a region of the [=inset-area grid=] ,
563
- and makes that the element's [=containing block=] .
562
+ Otherwise, it has the following effects:
564
563
565
- Note: This means that the [=inset properties=] specify offsets from the inset-area,
566
- and some property values,
567
- like ''max-height: 100%'' ,
568
- will be relative to the inset-area as well.
564
+ * The property selects a region of the [=inset-area grid=] ,
565
+ and makes that the element's [=containing block=] .
566
+ See [[#resolving-spans]] for details.
569
567
570
- Additionally, the ''align-self/normal'' value for the [=self-alignment properties=]
571
- behaves as either ''align-self/start'' , ''align-self/end'' ,
572
- or ''align-self/anchor-center'' ,
573
- depending on the positioning of the region,
574
- to give a good default alignment for the positioned element.
568
+ Note: This means that the [=inset properties=] specify offsets from the inset-area,
569
+ and some property values,
570
+ like ''max-height: 100%'' ,
571
+ will be relative to the inset-area as well.
575
572
576
- See [[#resolving-spans]] for details on both of these effects.
573
+ * The ''align-self/normal'' value for the [=self-alignment properties=]
574
+ behaves as either ''align-self/start'' , ''align-self/end'' ,
575
+ or ''align-self/anchor-center'' ,
576
+ depending on the positioning of the region,
577
+ to give a good default alignment for the positioned element.
578
+ Again, see [[#resolving-spans]] for details.
577
579
578
- Also, any ''top/auto'' [=inset properties=] resolve to ''0'' .
580
+ * Any ''top/auto'' [=inset properties=] resolve to ''0'' .
581
+
582
+ * The element is not considered to be in a [=legacy alignment mode=]
583
+ in either axis.
579
584
</dl>
580
585
586
+ <div class=note>
587
+ If the element overflows its 'inset-area' (and 'inset' ) -modified [=containing block=] ,
588
+ but would still fit within its [=original containing block=] ,
589
+ by default it will "shift" to stay within its [=original containing block=] ,
590
+ even if that violates its normal alignment.
591
+ See [[css-align-3#overflow-values]] for details.
592
+
593
+ This behavior makes it more likely
594
+ that positioned elements remain visible
595
+ and within their intended bounds,
596
+ even when their [=containing block=]
597
+ ends up smaller than anticipated.
598
+
599
+ For example, an ''inset-area: bottom span-right'' value
600
+ lets the positioned element stretch
601
+ from its anchors left edge
602
+ to its containing block's right edge,
603
+ and left-aligns it in that space by default.
604
+ But if the positioned element is larger than that space
605
+ (such as if the anchor is very close to the right edge of the screen),
606
+ it will shift leftwards to stay visible.
607
+ </di>
608
+
581
609
582
610
<h4 id=resolving-spans>
583
611
Resolving <<inset-area>>s</h4>
@@ -918,18 +946,20 @@ in the relevant axis.
918
946
919
947
Additionally,
920
948
any ''top/auto'' [=inset properties=] resolve to ''0'' .
921
- However, the [=available space=] for the positioned element in the relevant axis
922
- is reduced to the size of the largest rectangle
923
- that is centered on the [=default anchor element=]
924
- and doesn't overflow the [=inset-modified containing block=] .
925
- (Possibly being zero-sized,
926
- if the anchor's center is not within the [=inset-modified containing block=] .)
927
949
928
950
If the element is not [=absolutely positioned=] ,
929
951
or does not have a [=default anchor element=] ,
930
952
this value behaves as ''<self-position>/center''
931
953
and has no additional effect on how [=inset properties=] resolve.
932
954
955
+ Note: Similar to 'inset-area' ,
956
+ when using ''anchor-center'' ,
957
+ if the anchor is too close to the edge of the element's
958
+ [=original containing block=] ,
959
+ by default it will "shift" from being purely centered,
960
+ to instead remain within the [=original containing block=] .
961
+ See [[css-align-3#overflow-values]] for more details.
962
+
933
963
934
964
<!-- Big Text: scroll
935
965
0 commit comments