Skip to content

Commit f89f7a1

Browse files
committed
Update mentions of 'scroll container' to refer to scrollable axises when appropriate. WIP w3c#12289
1 parent c90e997 commit f89f7a1

4 files changed

Lines changed: 19 additions & 10 deletions

File tree

css-align-3/Overview.bs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,8 @@ Automatic Overflow Alignment Safety</h4>
888888
<h5 id=auto-safety-scroll>
889889
Content Distribution for Scroll Containers</h5>
890890

891-
The default [=overflow alignment=] behavior
892-
for [=content distribution=] on [=scroll containers=] is ''unsafe''.
891+
In a [=scrollable axis=] of a [=scroll container=],
892+
the default [=overflow alignment=] behavior for [=content distribution=] is ''unsafe''.
893893
Non-''justify-content/normal'' values of the [=content-distribution properties=] instead
894894
alter the [=scrollable overflow area=] in order to allow access to the overflowing content.
895895
See [[#overflow-scroll-position]].
@@ -923,6 +923,7 @@ Self-Alignment for Absolutely Positioned Boxes</h5>
923923
if the [=original containing block=] is generated by a [=scroll container=]
924924
(and is not its [=fixed containing block=]),
925925
the |overflow limit rect| is extended to infinity
926+
in the [=scrollable axises=]
926927
in any direction that does not extend into the [=unreachable scrollable overflow region=].
927928
</div>
928929

@@ -1028,7 +1029,7 @@ The 'justify-content' and 'align-content' Properties</h3>
10281029
If a <<content-distribution>> is specified
10291030
its <a>fallback alignment</a> is used instead.
10301031
If no <<overflow-position>> is specified,
1031-
and the [=block container=] is not a [=scroll container=],
1032+
and the [=block container=] is not a [=block-axis scroll container=],
10321033
then alignment is ''align-content/safe''.
10331034
<tr>
10341035
<th>'justify-content' Axis
@@ -1180,8 +1181,8 @@ Content-Distribution Shorthand: the 'place-content' property</h3>
11801181
<h3 id="overflow-scroll-position">
11811182
Alignment Overflow and Scroll Containers</h3>
11821183

1183-
When the <a>content-distribution properties</a> are set
1184-
on a <a>scroll container</a> with an overflowing <a>alignment subject</a>,
1184+
When the <a>content-distribution properties</a> are set in a [=scrollable axis=]
1185+
of a <a>scroll container</a> with an overflowing <a>alignment subject</a>,
11851186
they reduce the clipping of the [=unreachable scrollable overflow region=]
11861187
just enough to ensure that <a>alignment subject</a> can be scrolled
11871188
into its ''align-content/start''-aligned position.
@@ -2125,7 +2126,7 @@ Determining the Baselines of a Box</h3>
21252126
However, for legacy reasons
21262127
if its 'baseline-source' is ''baseline-source/auto'' (the [=initial value=])
21272128
a [=block-level=] or [=inline-level=] [=block container=]
2128-
that is a [=scroll container=]
2129+
that is a [=block-axis scroll container=]
21292130
always has a [=last baseline set=],
21302131
whose baselines all correspond to its [=block-end=] [=margin edge=].
21312132

@@ -2240,7 +2241,7 @@ Determining the Baselines of a Box</h3>
22402241
and ''vertical-rl'' if 'direction' is ''rtl''.
22412242

22422243
For the purposes of finding the baselines of a box,
2243-
it and all its [=in-flow=] descendants with a scrolling mechanism (see the 'overflow' property)
2244+
it and all its [=in-flow=] descendants that are [=block-axis scroll containers=]
22442245
must be considered as if scrolled to their initial scroll position.
22452246
Additionally,
22462247
if the position of a [=scroll container=]’s first/last baseline
@@ -2406,6 +2407,9 @@ Appendix A: Static Position Terminology</h2>
24062407
Changes</h2>
24072408

24082409
Changes since the <a href="https://www.w3.org/TR/2025/WD-css-align-3-20250311/">11 March 2025 Working Draft</a> include:
2410+
* Ensure all [=scroll container=] interactions
2411+
properly pay attention to the [=scrollable axises=].
2412+
(<a href="https://github.com/w3c/csswg-drafts/issues/12289">Issue 12289</a>)
24092413
* Clarify that [[#auto-safety-position]] applies when 'position-area' alters the [=used value=] of ''align-self/normal''.
24102414
* Allow absolutely positioned boxes to honor alignment even when overflowing into
24112415
the scrollable overflow area of a scroll container containing block.

css-anchor-position-1/Overview.bs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ specifically, the [=default anchor element=]:
12151215
[=used value|used=] [=inset properties=] in the axis
12161216
refers to a [=target anchor element=]
12171217
with the same nearest [=scroll container=] ancestor
1218+
with that axis as a [=scrollable axis=]
12181219
as |abspos|'s [=default anchor box=].
12191220

12201221
Note: If |abspos| has a [=position options list=],

css-backgrounds-4/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ Affixing Images: the 'background-attachment' property</h3>
625625
<dt><dfn>local</dfn></dt>
626626
<dd>
627627
The background is fixed with regard to the box's contents:
628-
if the box has a scrolling mechanism,
628+
if the box is a [=scroll container=],
629629
the background scrolls with the box's contents,
630630
and the [=background painting area=] and [=background positioning area=]
631631
are relative to the [=scrollable overflow area=] of the box

css-flexbox-1/Overview.bs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ Automatic Minimum Size of Flex Items</h3>
12981298
the used value of a <a>main axis</a> <a>automatic minimum size</a>
12991299
on a <a>flex item</a> whose [=computed value|computed=] 'overflow' value is [=non-scrollable overflow value|non-scrollable=]
13001300
is its [=content-based minimum size=];
1301-
for <a>scroll containers</a> the <a>automatic minimum size</a> is zero, as usual.
1301+
for [=block-axis scroll container|main-axis scroll containers=] the <a>automatic minimum size</a> is zero, as usual.
13021302

13031303
The <dfn>content-based minimum size</dfn> of a [=flex item=]
13041304
differs depending on whether the [=flex item=] is [=replaced element|replaced=] or not:
@@ -4600,7 +4600,7 @@ Flex Container Intrinsic Cross Sizes</h4>
46004600
is smaller than the [=max-content size=].
46014601
If the flex container has a height constraint,
46024602
this will result in overflow,
4603-
but if the [=flex container=] is also a [=scroll container=],
4603+
but if the [=flex container=] is also a [=block-axis scroll container|main-axis scroll container=],
46044604
it will at least be large enough to fit
46054605
any given column entirely within its [=scrollport=].
46064606

@@ -5266,6 +5266,10 @@ Changes since the <a href="https://www.w3.org/TR/2025/CRD-css-flexbox-1-20251014
52665266
</h3>
52675267

52685268
<ul>
5269+
<li id="change-2025-scroll-axis">
5270+
When appropriate, mention [=scrollable axises=].
5271+
(<a href="https://github.com/w3c/csswg-drafts/issues/12289">Issue 12289</a>)
5272+
52695273
<li id="change-2025-web-compat-intrinsic">
52705274
Defined the web-compatible intrinsic sizing algo in [[#intrinsic-main-sizes-compat]].
52715275
(<a href="https://github.com/w3c/csswg-drafts/issues/8884#issuecomment-1636311498">Issue 8884</a>)

0 commit comments

Comments
 (0)