You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The term <dfnid="scrolling-area">scrolling area</dfn> refers to a box of an element that has the following edges, depending on the element's scrolling box's <ahref="#overflow-directions">overflow
265
-
directions</a>.
266
+
<p>The term <dfnid="scrolling-area">scrolling area</dfn> refers to a box of a <ahref="#viewport">viewport</a> or an element that has the following edges, depending on the
267
+
<ahref="#viewport">viewport</a>'s or element's scrolling box's <ahref="#overflow-directions">overflow directions</a>.
266
268
267
269
<dlclass="switch">
268
270
<dt>If the <ahref="#overflow-directions">overflow directions</a> are rightward and downward
<p>When a user agent is to perform an <dfnid="concept-instant-scroll" title="concept-instant-scroll">instant scroll</dfn> of a scrolling box <vartitle="">box</var> to
385
387
<vartitle="">position</var>, it must update the scroll position of <vartitle="">box</var> to <vartitle="">position</var>.
<p>The <dfnid="beginning-of-the-document">beginning of the document</dfn> is the scroll position the <ahref="#viewport">viewport</a> would have by aligning the <ahref="#scrolling-area">scrolling area</a> in the
392
+
<ahref="#viewport">viewport</a> as follows, depending on the <ahref="#viewport">viewport</a>'s <ahref="#overflow-directions">overflow directions</a>:
393
+
394
+
<dlclass="switch">
395
+
<dt>If the <ahref="#overflow-directions">overflow directions</a> are rightward and downward
396
+
<dd><p>Align the top edge of the <ahref="#scrolling-area">scrolling area</a> with the top of the <ahref="#viewport">viewport</a>. Align the left edge of the <ahref="#scrolling-area">scrolling area</a>
397
+
with the left of the <ahref="#viewport">viewport</a>.
398
+
<dt>If the <ahref="#overflow-directions">overflow directions</a> are leftward and downward
399
+
<dd><p>Align the top edge of the <ahref="#scrolling-area">scrolling area</a> with the top of the <ahref="#viewport">viewport</a>. Align the right edge of the <ahref="#scrolling-area">scrolling area</a>
400
+
with the right of the <ahref="#viewport">viewport</a>.
401
+
<dt>If the <ahref="#overflow-directions">overflow directions</a> are leftward and upward
402
+
<dd><p>Align the bottom edge of the <ahref="#scrolling-area">scrolling area</a> with the bottom of the <ahref="#viewport">viewport</a>. Align the right edge of the <ahref="#scrolling-area">scrolling
403
+
area</a> with the right of the <ahref="#viewport">viewport</a>.
404
+
<dt>If the <ahref="#overflow-directions">overflow directions</a> are rightward and upward
405
+
<dd><p>Align the bottom edge of the <ahref="#scrolling-area">scrolling area</a> with the bottom of the <ahref="#viewport">viewport</a>. Align the left edge of the <ahref="#scrolling-area">scrolling
406
+
area</a> with the left of the <ahref="#viewport">viewport</a>.
407
+
</dl>
408
+
409
+
<pclass="note">The <ahref="#beginning-of-the-document">beginning of the document</a> concept is used when navigating to the <codetitle="">#top</code> fragment identifier, as defined in HTML.
410
+
<ahref="#refsHTML">[HTML]</a>
387
411
388
412
<h2id="extensions-to-the-window-interface"><spanclass="secno">5 </span>Extensions to the <codetitle="">Window</code> Interface</h2>
Copy file name to clipboardExpand all lines: cssom-view/Overview.src.html
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -231,8 +231,8 @@ <h2>Terminology</h2>
231
231
<dd><p>Righward and upward.
232
232
</dl>
233
233
234
-
<p>The term <dfn>scrolling area</dfn> refers to a box of an element that has the following edges, depending on the element's scrolling box's <span>overflow
235
-
directions</span>.
234
+
<p>The term <dfn>scrolling area</dfn> refers to a box of a <span>viewport</span> or an element that has the following edges, depending on the
235
+
<span>viewport</span>'s or element's scrolling box's <span>overflow directions</span>.
236
236
237
237
<dlclass=switch>
238
238
<dt>If the <span>overflow directions</span> are rightward and downward
@@ -354,6 +354,28 @@ <h3>Scrolling</h3>
354
354
<p>When a user agent is to perform an <dfntitle=concept-instant-scroll>instant scroll</dfn> of a scrolling box <vartitle>box</var> to
355
355
<vartitle>position</var>, it must update the scroll position of <vartitle>box</var> to <vartitle>position</var>.
356
356
357
+
<h4>Common Scroll Positions</h4>
358
+
359
+
<p>The <dfn>beginning of the document</dfn> is the scroll position the <span>viewport</span> would have by aligning the <span>scrolling area</span> in the
360
+
<span>viewport</span> as follows, depending on the <span>viewport</span>'s <span>overflow directions</span>:
361
+
362
+
<dlclass=switch>
363
+
<dt>If the <span>overflow directions</span> are rightward and downward
364
+
<dd><p>Align the top edge of the <span>scrolling area</span> with the top of the <span>viewport</span>. Align the left edge of the <span>scrolling area</span>
365
+
with the left of the <span>viewport</span>.
366
+
<dt>If the <span>overflow directions</span> are leftward and downward
367
+
<dd><p>Align the top edge of the <span>scrolling area</span> with the top of the <span>viewport</span>. Align the right edge of the <span>scrolling area</span>
368
+
with the right of the <span>viewport</span>.
369
+
<dt>If the <span>overflow directions</span> are leftward and upward
370
+
<dd><p>Align the bottom edge of the <span>scrolling area</span> with the bottom of the <span>viewport</span>. Align the right edge of the <span>scrolling
371
+
area</span> with the right of the <span>viewport</span>.
372
+
<dt>If the <span>overflow directions</span> are rightward and upward
373
+
<dd><p>Align the bottom edge of the <span>scrolling area</span> with the bottom of the <span>viewport</span>. Align the left edge of the <span>scrolling
374
+
area</span> with the left of the <span>viewport</span>.
375
+
</dl>
376
+
377
+
<pclass=note>The <span>beginning of the document</span> concept is used when navigating to the <codetitle>#top</code> fragment identifier, as defined in HTML.
378
+
<spandata-anolis-ref>HTML</span>
357
379
358
380
<h2>Extensions to the <codetitle>Window</code> Interface</h2>
0 commit comments