@@ -757,47 +757,8 @@ Overflow Alignment: the ''safe'' and ''unsafe'' keywords and scroll safety limit
757757 when they overflow they may send part of their boxes past the viewport's start edge,
758758 which can't be scrolled to.
759759
760- To control this situation,
761- an <dfn export>overflow alignment</dfn> mode can be explicitly specified.
762- “Unsafe” alignment honors the specified alignment mode in overflow situations, even if it causes data loss,
763- while “safe” alignment changes the alignment mode in overflow situations in an attempt to avoid data loss.
764- The default behavior is to contain the alignment subject within the scrollable area,
765- though at the time of writing this safety feature is not yet implemented.
766-
767- <pre class='prod'><dfn><overflow-position></dfn> = unsafe | safe</pre>
768-
769- <dl dfn-type="value" dfn-for="<overflow-position> ">
770- <dt> <dfn>safe</dfn>
771- <dd>
772- If the size of the <a>alignment subject</a> overflows the <a>alignment container</a> ,
773- the <a>alignment subject</a> is instead aligned as if the alignment mode were ''start'' .
774-
775- <dt> <dfn>unsafe</dfn>
776- <dd>
777- Regardless of the relative sizes of the <a>alignment subject</a> and <a>alignment container</a> ,
778- the given alignment value is honored.
779-
780- <dt> (no value specified)
781- <dd>
782- If the <a>overflow alignment</a> isn't explicitly specified,
783- the default <a>overflow alignment</a> is a blend of "safe" and "unsafe"
784- in that an overflowing <a>alignment subject</a> is allowed to overflow its <a>alignment container</a> ,
785- but if this would cause it to also overflow
786- the <a>scrollable overflow region</a> of its nearest ancestor <a>scroll container</a>
787- (thus extending into the "unscrollable" region),
788- then its overflow in that direction is limited
789- by biasing any remaining overflow to the opposite side.
790-
791- Issue: It may not be Web-compatible to implement the “smart” default behavior
792- (though we hope so, and believe it to be likely),
793- so UAs should pass any feedback on this point to the WG.
794- UAs that have not implemented the “smart” default behavior
795- must behave as ''unsafe'' .
796- </dl>
797-
798-
799760 <div class='example'>
800- The figure below illustrates the difference in " safe" versus " unsafe" centering,
761+ The figure below illustrates the difference in “ safe” versus “ unsafe” centering,
801762 using a column flexbox as an example:
802763
803764 <figure>
@@ -825,31 +786,74 @@ Overflow Alignment: the ''safe'' and ''unsafe'' keywords and scroll safety limit
825786 <div style="display:table-cell; padding-right: 50px;" class='cross-auto-figure'>
826787 <div>
827788 <div> About</div>
828- <div style="white-space: nowrap;"> Authoritarianism</div>
789+ <div style="white-space: nowrap; margin-left: -31px; "> Authoritarianism</div>
829790 <div> Blog</div>
830791 </div>
831792 </div>
832793 <div style="display:table-cell; padding-left: 50px;" class='cross-auto-figure'>
833794 <div>
834795 <div> About</div>
835- <div style="white-space: nowrap; margin-left: -31px; "> Authoritarianism</div>
796+ <div style="white-space: nowrap;"> Authoritarianism</div>
836797 <div> Blog</div>
837798 </div>
838799 </div>
839800 </div>
840801 <figcaption>
841- The items in the figure on the left are set to ''align-self: safe center;'' ,
842- while those in the figure on the right are set to ''align-self: unsafe center;'' .
843- If this column <a>flex container</a> was placed against the left edge of the page,
844- the "safe" behavior would be more desirable,
845- as the long item would be fully readable.
802+ The items in the figure on the right all strictly centered,
803+ even if the one that is too long to fit overflows on both sides,
804+ while those in the figure on the left are centered unless they overflow,
805+ in which case all the overflow goes off the end edge.
806+ If the container was placed
807+ against the left edge of the page,
808+ the “safe” behavior would be more desirable,
809+ as the long item would be fully readable,
810+ rather than clipped by the left edge of the screen.
846811 In other circumstances,
847- the " unsafe" centering behavior might be better,
812+ the “ unsafe” centering behavior might be better,
848813 as it correctly centers all the items.
849814 </figcaption>
850815 </figure>
851816 </div>
852817
818+ To control this situation,
819+ an <dfn export>overflow alignment</dfn> mode can be explicitly specified.
820+ “Unsafe” alignment honors the specified alignment mode in overflow situations, even if it causes data loss,
821+ while “safe” alignment changes the alignment mode in overflow situations in an attempt to avoid data loss.
822+ The default behavior is to contain the alignment subject within the scrollable area,
823+ though at the time of writing this safety feature is not yet implemented.
824+
825+ <pre class='prod'><dfn><overflow-position></dfn> = unsafe | safe</pre>
826+
827+ <dl dfn-type="value" dfn-for="<overflow-position> ">
828+ <dt> <dfn>safe</dfn>
829+ <dd>
830+ If the size of the <a>alignment subject</a> overflows the <a>alignment container</a> ,
831+ the <a>alignment subject</a> is instead aligned as if the alignment mode were ''start'' .
832+
833+ <dt> <dfn>unsafe</dfn>
834+ <dd>
835+ Regardless of the relative sizes of the <a>alignment subject</a> and <a>alignment container</a> ,
836+ the given alignment value is honored.
837+
838+ <dt> (no value specified)
839+ <dd>
840+ If the <a>overflow alignment</a> isn't explicitly specified,
841+ the default <a>overflow alignment</a> is a blend of “safe” and “unsafe”
842+ in that an overflowing <a>alignment subject</a> is allowed to overflow its <a>alignment container</a> ,
843+ but if this would cause it to also overflow
844+ the <a>scrollable overflow region</a> of its nearest ancestor <a>scroll container</a>
845+ (thus extending into the “unscrollable” region),
846+ then its overflow in that direction is limited
847+ by biasing any remaining overflow to the opposite side.
848+
849+ Issue: It may not be Web-compatible to implement the “smart” default behavior
850+ (though we hope so, and believe it to be likely),
851+ so UAs should pass any feedback on this point to the WG.
852+ UAs that have not implemented the “smart” default behavior
853+ must behave as ''unsafe'' .
854+ </dl>
855+
856+
853857<!--
854858 ██████ ███████ ██ ██ ████████ ████████ ██ ██ ████████
855859 ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ███ ██ ██
@@ -2230,7 +2234,7 @@ Baseline Alignment Grouping</h3>
22302234
22312235 The <a>baseline alignment preferences</a> of two boxes in a <a>baseline-sharing group</a> are <dfn lt="compatible baseline alignment preferences">compatible</dfn> if they have:
22322236
2233- * the same <a>block flow direction</a> and <a>baseline alignment preference</a>
2237+ * the same <a>block flow direction</a> and same <a>baseline alignment preference</a>
22342238 * opposite <a>block flow direction</a> and opposite <a>baseline alignment preference</a>
22352239
22362240<h3 id='align-by-baseline'>
0 commit comments