@@ -1106,27 +1106,24 @@ Content-Distribution Shorthand: the 'place-content' property</h3>
1106
1106
in which case it is defaulted to ''start'' .
1107
1107
1108
1108
<h3 id="overflow-scroll-position">
1109
- Overflow and Scroll Positions </h3>
1109
+ Alignment Overflow and Scroll Containers </h3>
1110
1110
1111
1111
When the <a>content-distribution properties</a> are set
1112
1112
on a <a>scroll container</a> with an overflowing <a>alignment subject</a> ,
1113
- rather than shifting the layout positions of its content,
1114
- they instead change its <a>initial scroll position</a>
1115
- so that the initially-visible content
1116
- of the <a>scroll container</a>
1117
- satisfies the [[#alignment-values|expected alignment]]
1118
- of the <a>alignment subject</a> and <a>alignment container</a> .
1119
-
1120
- Note: The presence of scrollbars can change the size of the [=scroll container’s=] content box,
1121
- and thus the size of the [=alignment container=]
1122
- and/or [=alignment subject=] .
1113
+ they reduce the clipping of the [=negative scrollable overflow region=]
1114
+ just enough to ensure that <a>alignment subject</a> can be scrolled
1115
+ into its ''align-content/start'' -aligned position.
1123
1116
1124
1117
<div class='example'>
1125
1118
For example,
1126
1119
if a scrollable flex container is set to ''justify-content: flex-end''
1127
1120
(or ''justify-content: flex-start'' with ''flex-flow: row-reverse'' ),
1128
- it will be initially displayed scrolled all the way to the main-end edge of its content,
1121
+ its [=in-flow=] content will be initially positioned
1122
+ to align the main-end edge of its content to the main-end edge of the flex container,
1129
1123
and its content will appear to overflow its main-start edge.
1124
+ However, the viewer will be able to scroll <em> up</em>
1125
+ to view the overflowing [=in-flow=] content,
1126
+ just as if ''justify-content: flex-start'' had been specified.
1130
1127
</div>
1131
1128
1132
1129
<figure>
@@ -1136,17 +1133,16 @@ Overflow and Scroll Positions</h3>
1136
1133
</figcaption>
1137
1134
</figure>
1138
1135
1139
- None of this changes how scroll coordinates are assigned:
1140
- the origin is still where it would be in a ''align-content/start'' -aligned container,
1141
- it just might be initially positioned outside the <a>scrollport</a> .
1142
-
1143
1136
Note: The <a>alignment subject</a> is not necessarily
1144
1137
identical to the <a>scrollable overflow area</a> :
1145
- content overflowing the <a>alignment subject</a> ,
1146
- such as an absolutely-positioned or out-of-flow element,
1147
- grows the <a>scrollable overflow area</a> but not the <a>alignment subject</a> ,
1148
- thus an ''align-content/end'' -aligned <a>scroll container</a>
1149
- might not be initially scrolled all the way to the bottom.
1138
+ content overflowing the <a>alignment subject</a> --
1139
+ such as an [=out-of-flow=] box--
1140
+ grows the <a>scrollable overflow area</a> but not the <a>alignment subject</a> .
1141
+ Thus an ''align-content/end'' -aligned <a>scroll container</a>
1142
+ might not be initially scrolled all the way to the bottom,
1143
+ and positioned content can still be clipped
1144
+ if it is further into the [=negative scrollable overflow region=]
1145
+ than the [=in-flow=] content forming the [=alignment subject=] .
1150
1146
1151
1147
<figure>
1152
1148
<img src="images/scroll-align-overflow.jpg" alt="">
@@ -1158,6 +1154,9 @@ Overflow and Scroll Positions</h3>
1158
1154
</figcaption>
1159
1155
</figure>
1160
1156
1157
+ Note: The presence of scrollbars can change the size of the [=scroll container’s=] content box,
1158
+ and thus the size of the [=alignment container=]
1159
+ and/or [=alignment subject=] .
1161
1160
1162
1161
<h3 id="baseline-align-content">
1163
1162
Baseline Content-Alignment</h3>
@@ -2463,6 +2462,9 @@ Changes</h2>
2463
2462
(<a href="https://github.com/w3c/csswg-drafts/issues/8214">Issue 8214</a> )
2464
2463
<li> Made [=block containers=] default to ''safe'' alignment.
2465
2464
(<a href="https://github.com/w3c/csswg-drafts/issues/8992">Issue 8992</a> )
2465
+ <li> Clearly define the interaction of overflowing [=content distribution=] and [=scroll containers=]
2466
+ to not impact layout, but to only affect the extent of the [=scrollable overflow area=] .
2467
+ (<a href="https://github.com/w3c/csswg-drafts/issues/4957">Issue 4957</a> )
2466
2468
</ul>
2467
2469
2468
2470
Changes since the <a href="https://www.w3.org/TR/2021/WD-css-align-3-20211224/">24 December 2021 Working Draft</a> include:
0 commit comments