File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -685,15 +685,17 @@ Scroll Position of Sticky-Positioned Boxes
685
685
686
686
For the purposes of any operation targeting the scroll position
687
687
of a sticky positioned element (or one of its descendants),
688
- the sticky positioned element must be considered to be positioned
689
- at its initial (non- offsetted) position.
688
+ the sticky positioned element must be considered to be
689
+ at its offsetted position.
690
690
691
691
692
692
For example, if a user clicks a link targeting a [=sticky-positioned=] element,
693
- even if the element's [=nearest scrollport=] is currently scrolled
693
+ if the element's [=nearest scrollport=] is currently scrolled
694
694
such that the [=sticky positioned=] element is offset from its initial position,
695
- the [=scrollport=] will be scrolled back
696
- so that the element's initial position is visible.
695
+ the [=scroll container=] will be scrolled back
696
+ only the minimum necessary to bring it into its desired position in the [=scrollport=]
697
+ (rather than scrolling all the way back
698
+ to target its original, non-offsetted position).
697
699
698
700
699
701
You can’t perform that action at this time.
0 commit comments