Skip to content

Commit f58915b

Browse files
fantasaidbaron
authored andcommitted
[css-align] Make the interaction of content-distribution properties and scroll containers clearer per w3c#1425
1 parent fdbc7c6 commit f58915b

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

css-align-3/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,14 +1096,14 @@ Content-Distribution Shorthand: the 'place-content' property</h3>
10961096
<h3 id="overflow-scroll-position">
10971097
Overflow and Scroll Positions</h3>
10981098

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

11081108
<div class='example'>
11091109
For example,

0 commit comments

Comments
 (0)