Skip to content

Commit

Permalink
Fix indentation; improve references & links
Browse files Browse the repository at this point in the history
  • Loading branch information
David Awogbemila committed Nov 14, 2024
1 parent ece2224 commit b5b44c8
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4056,6 +4056,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>The <dfn data-x="event-scroll" data-x-href="https://drafts.csswg.org/cssom-view/#eventdef-document-scroll"><code>scroll</code></dfn> event</li>
<li>The <dfn data-x="event-scrollend" data-x-href="https://drafts.csswg.org/cssom-view/#eventdef-document-scrollend"><code>scrollend</code></dfn> event</li>
<li><dfn data-x-href="https://drafts.csswg.org/cssom-view/#set-up-browsing-context-features">set up browsing context features</dfn></li>
<li>The term <dfn data-x-href="https://drafts.csswg.org/cssom-view/#perform-a-scroll">perform a scroll</dfn></li>
<li>The term <dfn data-x-href="https://drafts.csswg.org/cssom-view/#scrolling-box">scrolling box</dfn></li>
</ul>

<p>The following features and terms are defined in <cite>CSS Syntax</cite>:
Expand Down Expand Up @@ -103883,22 +103885,26 @@ location.href = '#foo';</code></pre>
</ol>

<p>To <dfn>update the initial scroll positions for scroll containers</dfn> in a
<code>Document</code> <var>document</var>,
perform the following steps:</p>
<code>Document</code> <var>document</var>:</p>

<ol>
<li><p>Let <var>scrollers</var> be the list of all
<span data-x="scroll container">scroll containers</span> within <var>document</var>.<p></li>
<li><p>Let <var>scrollers</var> be a <span>list</span> of all
<span data-x="scroll container">scroll containers</span> of <var>document</var>.<p></li>

<li>
<p>For each scroller in <var>scrollers</var>:</p>
<p><span data-x="list iterate">For each</span> <var>scroller</var> of <var>scrollers</var>:
</p>

<ol>
<li><p>If the user agent has reason to believe the user is no longer interested in scrolling
to <var>scroller</var>'s <span data-x="initial scroll position">initial scroll
position</span>, then abort these steps.</p></li>
to <var>scroller</var>'s <span data-x="initial scroll position">initial scroll position
</span>, then abort these steps.</p></li>

<li><p>Let <var>position</var> be the <span data-x="initial scroll position">initial scroll
position</span> of <var>scroller</var>.</li>

<li><p>Update <var>scroller</var>'s <span data-x="initial scroll position">initial scroll
position</span> and scroll <var>scroller</var> to it.</p></li>
<li><p><span data-x="perform a scroll">Perform a scroll</span> of <var>scroller</var>'s <span
data-x="scrolling box">scrolling box</span> to <var>position</var>.</p></li>
</ol>
</li>
</ol>
Expand Down

0 comments on commit b5b44c8

Please sign in to comment.