@@ -644,7 +644,8 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
644
644
its <a>snap area</a> (as the <a>alignment subject</a> )
645
645
within its <a>snap container’s</a> <a>snapport</a> (as the <a>alignment container</a> ).
646
646
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=] .
648
649
If only one value is specified, the second value defaults to the same value.
649
650
650
651
Values are defined as follows:
@@ -676,6 +677,14 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
676
677
in the specified axis.
677
678
</dl>
678
679
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
+
679
688
<h4 id="snap-scope">
680
689
Scoping Valid Snap Positions to Visible Boxes</h4>
681
690
@@ -1188,6 +1197,14 @@ Changes {#changes}
1188
1197
Changes Since 31 January 2019 CR {#changes-20190131}
1189
1198
----------------------------------------------------
1190
1199
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
+
1191
1208
Changes since the <a href="https://www.w3.org/TR/2019/CR-css-scroll-snap-1-20190131/">31 January 2019 Candidate Recommendation</a> include:
1192
1209
1193
1210
<ul>
0 commit comments