Skip to content

Commit 93aeb5c

Browse files
committed
[css-align-3][css-anchor-position-1] Clarify that position-area normal alignment magic triggers overflow safety magic
1 parent 72f413b commit 93aeb5c

File tree

2 files changed

+5
-170
lines changed

2 files changed

+5
-170
lines changed

css-align-3/Overview.bs

Lines changed: 4 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ Content Distribution for Scroll Containers</h5>
898898
Self-Alignment for Absolutely Positioned Boxes</h5>
899899

900900
For [=absolutely positioned=] [=alignment subjects=]
901-
whose relevant [=self-alignment property=] is not ''justify-self/normal'',
901+
whose relevant [=used value|used=] [=self-alignment property=] is not ''justify-self/normal'',
902902
the default [=overflow alignment=] behavior is as follows:
903903

904904
<div algorithm="default overflow self-alignment for abspos">
@@ -2514,175 +2514,10 @@ Appendix A: Static Position Terminology</h2>
25142514
<h2 id="changes">
25152515
Changes</h2>
25162516

2517-
Changes since the <a href="https://www.w3.org/TR/2023/WD-css-align-3-20230217/">17 February 2023 Working Draft</a> include:
2518-
<ul>
2519-
<li>Made [=block containers=] default to ''safe'' alignment.
2520-
See [[#auto-safety-default]].
2521-
(<a href="https://github.com/w3c/csswg-drafts/issues/8992">Issue 8992</a>)
2522-
<li>Made [=absolutely positioned boxes=] default to using a “smart” safe alignment
2523-
that allows unsafe overflow of the [=inset-modified containing block=]
2524-
while maintaining safety within the [=original containing block=].
2525-
See [[#auto-safety-position]].
2526-
(<a href="https://github.com/w3c/csswg-drafts/issues/10316">Issue 10316</a>,
2527-
<a href="https://github.com/w3c/csswg-drafts/issues/9960">Issue 9960</a>)
2528-
<li>Make all the ''space-*'' keywords fallback to ''safe'' overflow.
2529-
(<a href="https://github.com/w3c/csswg-drafts/issues/10154">Issue 10154</a>)
2530-
<li>Clearly define the interaction of overflowing [=content distribution=] and [=scroll containers=]
2531-
to not impact layout, but to only affect the extent of the [=scrollable overflow area=].
2532-
(<a href="https://github.com/w3c/csswg-drafts/issues/4957">Issue 4957</a>)
2533-
<li>Only apply the special margin-edge baseline rule for [=scroll container=] [=block containers=]
2534-
when 'baseline-source' is its [=initial value=].
2535-
(<a href="https://github.com/w3c/csswg-drafts/issues/8214">Issue 8214</a>)
2536-
<li>When synthesizing the baseline of an orthogonal-flow box,
2537-
make the assumed parallel [=writing mode=] sensitive to 'direction'.
2538-
(<a href="https://github.com/w3c/csswg-drafts/issues/7775">Issue 7775</a>)
2539-
<blockquote>
2540-
<del><p>Otherwise,
2541-
assume either ''horizontal-tb'' or ''vertical-lr'' 'writing-mode',
2542-
whichever is orthogonal to the box’s own 'writing-mode'.</p></del>
2543-
<ins><p>Otherwise:</p>
2544-
<ul>
2545-
<li>If the box’s own [=writing mode=] is vertical,
2546-
assume ''horizontal-tb''.
2547-
<li>If the box’s own [=writing mode=] is horizontal,
2548-
assume ''vertical-lr'' if 'direction' is ''ltr''
2549-
and ''vertical-rl'' if 'direction' is ''rtl''.
2550-
</ul>
2551-
</ins>
2552-
</blockquote>
2553-
<li>Clarify that spanning cells only participate in the first/last row they span
2554-
when participating in first/last baseline alignment.
2555-
(<a href="https://github.com/w3c/csswg-drafts/issues/7655">Issue 7655</a>)
2556-
<li>Define the 'grid-gap' properties as [=legacy name aliases=] of the 'gap' properties.
2557-
(<a href="https://github.com/w3c/csswg-drafts/issues/8014">Issue 8014</a>)
2558-
<li>Defer definition of ''align-self/normal'' alignment for [=absolutely positioned boxes=] to [[css-position-3]].
2559-
(<a href="https://github.com/w3c/csswg-drafts/issues/11215">Issue 11215</a>,
2560-
<a href="https://github.com/w3c/csswg-drafts/issues/11285">Issue 11285</a>)
2561-
<li>Changed sentence about applicability of 'row-gap' to [=multi-column containers=]
2562-
to indicate that it applies in [[CSS-MULTICOL-2]].
2563-
(<a href="https://github.com/w3c/csswg-drafts/issues/11539#issuecomment-2628431667">Issue 11539</a>)
2564-
<li>Defined that [=gutters=] dissappear at [=fragmentation breaks=].
2565-
(<a href="https://github.com/w3c/csswg-drafts/issues/11520">Issue 11520</a>)
2566-
</ul>
2567-
2568-
Changes since the <a href="https://www.w3.org/TR/2021/WD-css-align-3-20211224/">24 December 2021 Working Draft</a> include:
2569-
<ul>
2570-
<li>Define the baselines of a [=multi-column container=].
2571-
(<a href="https://github.com/w3c/csswg-drafts/issues/7856">Issue 7856</a>,
2572-
<a href="https://github.com/w3c/csswg-drafts/issues/7639">Issue 7639</a>)
2573-
<li>Use the [=writing mode=] of the [=static-position containing block=]
2574-
when determining the [=static position=].
2575-
(<a href="https://github.com/w3c/csswg-drafts/issues/7599">Issue 7599</a>,
2576-
<a href="https://github.com/w3c/csswg-drafts/issues/7612">Issue 7612</a>;
2577-
<a href="https://github.com/w3c/csswg-drafts/commit/29e253d0344d4a2bec47305a70cbcbfde669af7b">Changes</a>)
2578-
<li>Remove definition of special behavior for including padding in [=scrollable overflow=]
2579-
for non-''align-content/normal'' alignments
2580-
since this is now defined unconditionally in [[!CSS-OVERFLOW-3]].
2581-
(<a href="https://github.com/w3c/csswg-drafts/issues/129#issuecomment-1113489051">Issue 129</a>)
2582-
<li>Minor clarifications:
2583-
* Define [=fallback alignment=] of a [=baseline-sharing group=]
2584-
as the shared [=fallback alignment=] of its individual items.
2585-
* Annotate <<length-percentage>> value definitions using [=CSS bracketed range notation=].
2586-
</ul>
2587-
2588-
Changes since the <a href="https://www.w3.org/TR/2020/WD-css-align-3-20200421/">21 April 2020 Working Draft</a> include:
2589-
<ul>
2590-
<li>Allowed reordering of ''[ first | last ]'' and ''align-self/baseline'' components of <<baseline-position>>.
2591-
(<a href="https://github.com/w3c/csswg-drafts/issues/5235">Issue 5235</a>)
2592-
<li>Make [=fallback alignment=] of ''space-around'' and ''space-evenly'' include ''safe''.
2593-
(<a href="https://github.com/w3c/csswg-drafts/issues/5088">Issue 5088</a>)
2594-
<li>Various corrections to <css>normal</css> alignment and percentage gaps
2595-
to match respective layout specs.
2596-
<li>Corrections to special legacy handling of the [=last baseline set=] of [=scroll containers=].
2597-
(<a href="https://github.com/w3c/csswg-drafts/issues/3611">Issue 3611</a>)
2598-
<li>Clarify that a box with no [=baseline set=] synthesizes its [=alignment baseline=] as needed.
2599-
(<a href="https://github.com/w3c/csswg-drafts/issues/3611">Issue 3611</a>)
2600-
<li>Clarified that only non-replaced boxes are affected by [=content distribution=].
2601-
(<a href="https://github.com/w3c/csswg-drafts/issues/4545">Issue 4545</a>)
2602-
<li>Clarified when a box has a [=coordinated self-alignment preference=]
2603-
that enables [=baseline content-alignment=],
2604-
particularly with respect to ''margin/auto'' [=margins=].
2605-
(<a href="https://github.com/w3c/csswg-drafts/issues/5923">Issue 5923</a>)
2606-
<li>Better define how baseline self-alignment and content-alignment interact.
2607-
(<a href="https://github.com/w3c/csswg-drafts/issues/6389">Issue 6389</a>)
2608-
<li>Clarify how baseline-sharing groups determine their fallback alignment.
2609-
(<a href="https://github.com/w3c/csswg-drafts/issues/7645">Issue 7645</a>)
2610-
</ul>
2611-
2612-
Changes since the <a href="https://www.w3.org/TR/2018/WD-css-align-3-20181206/">6 December 2018 Working Draft</a> include:
2613-
<ul>
2614-
<li>Improved the center self-alignment of absolutely-positioned elements.
2615-
<a href="https://github.com/w3c/csswg-drafts/issues/4659">Issue 4659</a>
2616-
<li>Fixed inconsistent fallback of baseline alignment in mixed writing modes.
2617-
<a href="https://github.com/w3c/csswg-drafts/issues/3454">Issue 3454</a>
2618-
<li>Minor editorial fixes and clarifications.
2619-
</ul>
2620-
2621-
Changes since the <a href="https://www.w3.org/TR/2018/WD-css-align-3-20180830/">30 August 2018 Working Draft</a> consist of some minor clarifications.
2622-
2623-
Changes since the <a href="https://www.w3.org/TR/2018/WD-css-align-3-20180423/">23 April 2018 Working Draft</a> include:
2624-
<ul>
2625-
<li>Better definition of how the alignment properties interact with absolutely-positioned boxes with ''left/auto'' offsets.
2626-
See [[#justify-abspos]], [[#align-abspos]], [[#abspos-sizing]], and [[#staticpos-rect]].
2627-
<li>More detailed definition of how the <a>content-distribution properties</a> work on <a>scroll containers</a>.
2628-
See [[#overflow-scroll-position]].
2629-
<li>Noted CSS2’s special rules about the baselines of inline-block <a>scroll containers</a>.
2630-
<li>Defined that percentage gaps compute against zero when calculating intrinsic sizes, and resolve during layout. (<a href="https://github.com/w3c/csswg-drafts/issues/509">Issue 509</a>)
2631-
<li>Miscellaneous minor clarifications.
2632-
</ul>
2517+
Changes since the <a href="https://www.w3.org/TR/2025/WD-css-align-3-20250311/">11 March 2025 Working Draft</a> include:
2518+
* Clarify that [[#auto-safety-position]] applies when 'position-area' alters the [=used value=] of ''align-self/normal''.
26332519

2634-
Changes since the <a href="https://www.w3.org/TR/2017/WD-css-align-3-20170906/">6 September 2017 Working Draft</a> include:
2635-
<ul>
2636-
<li>Added more illustrations! Many thanks to Melanie Richards for working through a difficult diagramming problem.
2637-
<li>Fixed errors in property definition table of 'gap' shorthand.
2638-
<li>Defining percentage gaps to resolve to zero when the containing block’s size depends on the gaps.
2639-
(<a href="https://github.com/w3c/csswg-drafts/issues/509">Issue 509</a>,
2640-
<a href="https://github.com/w3c/csswg-drafts/issues/2297">Issue 2297</a>)
2641-
<li>Fixed errors in handling <css>left</css> and <css>right</css> in the grammars.
2642-
<li>Fixed discrepancy in ''align-content/space-align'' fallback alignment.
2643-
(<a href="https://github.com/w3c/csswg-drafts/issues/2316">Issue 2316</a>)
2644-
<li>Tightened up handling of baseline alignment in cases where the box edges don't align.
2645-
(<a href="https://github.com/w3c/csswg-drafts/issues/1556">Issue 1556</a>,
2646-
<a href="https://github.com/w3c/csswg-drafts/issues/1611">Issue 1611</a>)
2647-
<li>Miscellaneous clarifications.
2648-
</ul>
2649-
2650-
Changes since the <a href="https://www.w3.org/TR/2017/WD-css-align-3-20170720/#changes">20 July 2017 Working Draft</a> include:
2651-
<ul>
2652-
<li>Added the 'row-gap' and 'column-gap' properties and 'gap' shorthand,
2653-
applying them to both <a>grid layout</a> and <a>flex layout</a>
2654-
to replace the grid-specific 'grid-row-gap'/'grid-column-gap'/'grid-gap' properties.
2655-
</ul>
2656-
2657-
Changes since the <a href="https://www.w3.org/TR/2017/WD-css-align-3-20170515/">15 May 2017 Working Draft</a> include:
2658-
<ul>
2659-
<li>Dropped the ''left'' and ''right'' keywords from 'align-self' and 'align-content'.
2660-
They may be re-introduced in a later level if there is demand.
2661-
(<a href="https://github.com/w3c/csswg-drafts/issues/1403">Issue 1403</a>)
2662-
<li>Assigned ''end'' fallback alignment to ''align-self/stretch'' cases when combined with ''last baseline'' content-alignment.
2663-
<li>Disabled baseline alignment across cells in a table column,
2664-
due to implementation complexity.
2665-
<li>A large number of minor corrections and clarifications <a href="https://github.com/w3c/csswg-drafts/issues?q=is%3Aissue+label%3Acss-align-3+author%3Adbaron">reported by David Baron</a>.
2666-
</ul>
2667-
2668-
Changes since the <a href="https://www.w3.org/TR/2017/WD-css-align-3-20170407/">7 April 2017 Working Draft</a> include:
2669-
<ul>
2670-
<li>Adding a section to clarify handling of partial implementations.
2671-
(<a href="https://github.com/w3c/csswg-drafts/issues/1167">Issue 1167</a>)
2672-
<li>Dropped <<baseline-position>> value of 'justify-content' since it can't do anything anyway.
2673-
(<a href="https://github.com/w3c/csswg-drafts/issues/1184">Issue 1184</a>)
2674-
<li>Deferred ability to specify fallback alignments to Level 4.
2675-
(<a href="https://github.com/w3c/csswg-drafts/issues/1002#issuecomment-295143297">Issue 1002</a>)
2676-
<li>Fixed position of <<overflow-position>> wrt <<content-position>>.
2677-
(<a href="https://github.com/w3c/csswg-drafts/issues/1001">Issue 1001</a>)
2678-
<li>Fixed rules for handling baseline-aligned boxes being aligned along their block axis.
2679-
(<a href="https://github.com/w3c/csswg-drafts/issues/1038">Issue 1038</a>)
2680-
<li>Renamed ''justify-items: auto'' to ''justify-items: legacy''.
2681-
(<a href="https://github.com/w3c/csswg-drafts/issues/1318">Issue 1318</a>)
2682-
<li>Clamped baselines of scrollable boxes to the border edge, rather than margin edge.
2683-
(<a href="https://github.com/w3c/csswg-drafts/issues/766">Issue 766</a>)
2684-
<li>Updated the flex container gap definition to use [=gutter=]. (<a href="https://github.com/w3c/csswg-drafts/issues/12084">Issue 12084</a>)
2685-
</ul>
2520+
See also <a href="https://www.w3.org/TR/2025/WD-css-align-3-20250311/#changes">previous changes</a>.
26862521

26872522
<h2 id="privacy">
26882523
Privacy Considerations</h2>

css-anchor-position-1/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ Anchor-Based Alignment {#alignment}
12221222
Area-specific Default Alignment</h3>
12231223

12241224
When 'position-area' is not ''position-area/none'',
1225-
the behavior of the ''align-self/normal'' [=self-alignment=] value
1225+
the [=used value=] of ''align-self/normal'' [=self-alignment=]
12261226
changes depending on the <<position-area>> value,
12271227
to align the box towards the anchor:
12281228

0 commit comments

Comments
 (0)