[css-position-3] Define that stickypos elements are at their initial … · w3c/csswg-drafts@5a8ed5b (original) (raw)

`@@ -637,6 +637,22 @@ Sticky positioning

`

637

637

` are offset independently,

`

638

638

` and therefore might overlap.

`

639

639

``

``

640

`+

`

``

641

`+

Scroll Position of Sticky-Positioned Boxes

`

``

642

+

``

643

`+

For the purposes of any operation targetting the scroll position

`

``

644

`+

of a sticky positioned element (or one of its descendants),

`

``

645

`+

the sticky positioned element must be considered to be positioned

`

``

646

`+

at its initial (non-offsetted) position.

`

``

647

+

``

648

`+

`

``

649

`+

For example, if a user clicks a link targetting a [=sticky-positioned=] element,

`

``

650

`+

even if the element's [=nearest scrollport=] is currently scrolled

`

``

651

`+

such that the [=sticky positioned=] element is offset from its initial position,

`

``

652

`+

the [=scrollport=] will be scrolled back

`

``

653

`+

so that the element's initial position is visible.

`

``

654

`+

`

``

655

+

640

656

``

641

657

`

`

642

658

`Absolute Positioning

`