File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -555,23 +555,22 @@ spec: cssom-view-1; type: dfn;
555
555
: <dfn>startOffset</dfn>
556
556
:: Represents the starting (0% progress) scroll position
557
557
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=] .
559
559
Null when the timeline is [=inactive timeline|inactive=] .
560
560
561
561
: <dfn>endOffset</dfn>
562
562
:: Represents the ending (100% progress) scroll position
563
563
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=] .
565
565
Null when the timeline is [=inactive timeline|inactive=] .
566
566
</dl>
567
567
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,
569
572
for example in the [=horizontal axis=] in a right-to-left (''rtl'' ) [=writing mode=] .
570
573
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
-
575
574
Inherited attributes:
576
575
577
576
<dl>
You can’t perform that action at this time.
0 commit comments