Skip to content

Commit

Permalink
[css-position-3] Define that stickypos elements are at their initial …
Browse files Browse the repository at this point in the history
…position when a scrolling operation tries to target them. #1459
  • Loading branch information
tabatkins committed Apr 29, 2020
1 parent b6efcd7 commit 5a8ed5b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions css-position-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,22 @@ Sticky positioning</h3>
are offset independently,
and therefore might overlap.

<h4 id="stickypos-scroll">
Scroll Position of Sticky-Positioned Boxes</h4>

For the purposes of any operation targetting the scroll position
of a sticky positioned element (or one of its descendants),
the sticky positioned element must be considered to be positioned
at its initial (non-offsetted) position.

<div class="example">
For example, if a user clicks a link targetting a [=sticky-positioned=] element,
even if the element's [=nearest scrollport=] is currently scrolled
such that the [=sticky positioned=] element is offset from its initial position,
the [=scrollport=] will be scrolled back
so that the element's initial position is visible.
</div>


<h3 id="abspos-insets" oldids="abs-pos">
Absolute Positioning</h3>
Expand Down

0 comments on commit 5a8ed5b

Please sign in to comment.