@@ -901,25 +901,28 @@ Self-Alignment for Absolutely Positioned Boxes</h5>
901901 whose relevant [=self-alignment property=] is not ''justify-self/normal'' ,
902902 the default [=overflow alignment=] behavior is as follows:
903903
904- 1. Let the |default overflow rect| be the bounding rectangle
905- of the [=alignment subject's=] [=inset-modified containing block=]
906- and its [=original containing block=] .
907- 2. If the [=alignment subject=] overflows its [=inset-modified containing block=]
908- (its normal [=alignment container=] ),
909- but does not overflow |default overflow rect|
910- align as specified (''unsafe'' ).
911- 3. If the <em> size</em> of the [=alignment subject=]
912- fits within the |default overflow rect|,
913- but its specified alignment would cause it to overflow the |default overflow rect|,
914- it is instead shifted the minimum amount
915- to stay within the |default overflow rect|
916- while honoring the alignment as much as possible
917- (i.e., flush with the edge of the [=original containing block=]
918- it was trying to overflow over).
919- 4. If the size of the [=alignment subject=]
920- overflows the |default overflow rect|,
921- it is instead start-aligned within the |default overflow rect|
922- (similar to ''safe'' ).
904+
905+ <div algorithm="default overflow self-alignment for abspos">
906+ 1. Let the |default overflow rect| be the bounding rectangle
907+ of the [=alignment subject's=] [=inset-modified containing block=]
908+ and its [=original containing block=] .
909+ 2. If the [=alignment subject=] overflows its [=inset-modified containing block=]
910+ (its normal [=alignment container=] ),
911+ but does not overflow |default overflow rect|
912+ align as specified (''unsafe'' ).
913+ 3. If the <em> size</em> of the [=alignment subject=]
914+ fits within the |default overflow rect|,
915+ but its specified alignment would cause it to overflow the |default overflow rect|,
916+ it is instead shifted the minimum amount
917+ to stay within the |default overflow rect|
918+ while honoring the alignment as much as possible
919+ (i.e., flush with the edge of the [=original containing block=]
920+ it was trying to overflow over).
921+ 4. If the size of the [=alignment subject=]
922+ overflows the |default overflow rect|,
923+ it is instead start-aligned within the |default overflow rect|
924+ (similar to ''safe'' ).
925+ </div>
923926
924927 (For [=absolutely-positioned=] [=alignment subjects=] that fail the above condition,
925928 see [[#auto-safety-default]] .)
0 commit comments