Skip to content

Commit 6c88096

Browse files
committed
[css-scroll-snap-1] Specify which writing mode is used to resolve 'scroll-snap-align' per WG resolution. #3815
1 parent 26086a6 commit 6c88096

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

css-scroll-snap-1/Overview.bs

+18-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,8 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
644644
its <a>snap area</a> (as the <a>alignment subject</a>)
645645
within its <a>snap container’s</a> <a>snapport</a> (as the <a>alignment container</a>).
646646
The two values specify the snapping alignment
647-
in the <a>block axis</a> and <a>inline axis</a>, respectively.
647+
in the <a>block axis</a> and <a>inline axis</a>, respectively,
648+
as determined by the [=snap container=]’s [=writing mode=].
648649
If only one value is specified, the second value defaults to the same value.
649650

650651
Values are defined as follows:
@@ -676,6 +677,14 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
676677
in the specified axis.
677678
</dl>
678679

680+
Start and end alignments are resolved
681+
with respect to the [=writing mode=] of the [=snap container=]
682+
unless the [=scroll snap area=] is larger than the [=snapport=],
683+
in which case they are resolved with respect to the [=writing mode=] of the box itself.
684+
(This allows items in a container to have consistent snap alignment in general,
685+
while ensuring that ''scroll-snap-align/start'' always aligns the item
686+
to allow reading its contents from the beginning.)
687+
679688
<h4 id="snap-scope">
680689
Scoping Valid Snap Positions to Visible Boxes</h4>
681690

@@ -1188,6 +1197,14 @@ Changes {#changes}
11881197
Changes Since 31 January 2019 CR {#changes-20190131}
11891198
----------------------------------------------------
11901199

1200+
Changes since the <a href="https://www.w3.org/TR/2019/CR-css-scroll-snap-1-20190319/">19 March 2019 Candidate Recommendation</a> include:
1201+
1202+
<ul>
1203+
<li id="change-2019-clarify-writing-mode">
1204+
Specified which writing mode is used to resolve 'scroll-snap-align'.
1205+
(<a href="https://github.com/w3c/csswg-drafts/issues/3815">Issue 3815</a>)
1206+
</ul>
1207+
11911208
Changes since the <a href="https://www.w3.org/TR/2019/CR-css-scroll-snap-1-20190131/">31 January 2019 Candidate Recommendation</a> include:
11921209

11931210
<ul>

0 commit comments

Comments
 (0)