Skip to content

Commit c72a078

Browse files
committed
[scroll-animations-1] Use logical coords for scroll offsets. #7752
1 parent 2323531 commit c72a078

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

scroll-animations-1/Overview.bs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -555,23 +555,22 @@ spec: cssom-view-1; type: dfn;
555555
: <dfn>startOffset</dfn>
556556
:: Represents the starting (0% progress) scroll position
557557
of the [=view progress timeline=]
558-
as a length offset (in ''px'') from the scroll origin.
558+
as a length offset (in ''px'') from the [=scroll origin=].
559559
Null when the timeline is [=inactive timeline|inactive=].
560560

561561
: <dfn>endOffset</dfn>
562562
:: Represents the ending (100% progress) scroll position
563563
of the [=view progress timeline=]
564-
as a length offset (in ''px'') from the scroll origin.
564+
as a length offset (in ''px'') from the [=scroll origin=].
565565
Null when the timeline is [=inactive timeline|inactive=].
566566
</dl>
567567

568-
Note: The value of {{ViewTimeline/startOffset}} can be greater than {{ViewTimeline/endOffset}},
568+
Note: The values of {{ViewTimeline/startOffset}} and {{ViewTimeline/endOffset}}
569+
are relative to the [=scroll origin=], not the [=physical=] top left corner.
570+
Depending on the [=writing mode=] of the [=scroll container=],
571+
they therefore might not match {{Element/scrollLeft}} or {{Element/scrollTop}} values,
569572
for example in the [=horizontal axis=] in a right-to-left (''rtl'') [=writing mode=].
570573

571-
ISSUE: This makes the offsets compatible with the way scrollLeft and scrollTop work,
572-
which go negative from zero in RTL scroll containers,
573-
is this how we want it to work here?
574-
575574
Inherited attributes:
576575

577576
<dl>

0 commit comments

Comments
 (0)