Skip to content

Commit cefb94f

Browse files
committed
[css-align] Make the interaction of content distribution properties and scroll containers clearer per w3c#1425
1 parent 51969fb commit cefb94f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

css-align/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -865,14 +865,14 @@ Baseline Content-Alignment</h3>
865865
<h3 id="overflow-scroll-position">
866866
Overflow and Scroll Positions</h3>
867867

868-
The <a>content distribution properties</a> also affect the initial scroll position,
869-
setting it to display the appropriate portion of the scrollable area.
870-
In other words,
871-
the <a>scrollable overflow region</a> is aligned relative to the viewport
872-
as specified by the <a>content distribution properties</a>.
873-
Additionally, so that the content remains in the <a>scrollable overflow region</a> in order to be scrollable,
874-
the ''overflow/scroll'' and ''overflow/auto'' values of 'overflow'
875-
trigger ''safe'' content alignment always.
868+
Content that overflows a <a>scroll container</a>
869+
is aligned exactly like content in a non-scrollable container.
870+
However, to prevent content from being shifted into the unscrollable region,
871+
when the <a>content distribution properties</a> are set on a <a>scroll container</a>,
872+
the zero coordinate of its <a>scrollable overflow region</a>
873+
(that is, the point beyond which content is unreachable)
874+
is set to the top left corner of the <a>alignment subject</a>,
875+
effectively changing the <a>initial scroll position</a>.
876876

877877
<div class='example'>
878878
For example,

0 commit comments

Comments
 (0)