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
@@ -56,7 +59,7 @@ A <dfn>scroll chain</dfn> is the order in which scrolling is propagated from one
56
59
57
60
<dfn>Scroll boundary</dfn> refers to when the scroll position of a <a>scroll container</a> reaches the edge of the <a>scrollport<a>. If a scroll container has no potential to scroll, because it does not <a>overflow</a> in the direction of the scroll, the element is always considered to be at the scroll boundary.
58
61
59
-
<dfn>Boundary default action</dfn> refers to the user-agent-defined <a>default action</a> performed when scrolling against the edge of the <a>scrollport</a>. This may be scroll chaining, showing an overscroll affordance and/or performing a navigation action.
62
+
<dfn>Boundary default action</dfn> refers to the user-agent-defined <a>default action</a> performed when scrolling against the edge of the <a>scrollport</a>. A <a>boundary default action</a> is said to be <dfn>local</dfn>, for example overscroll, if it is performed on the <a>scroll container</a> without interacting with the page. Conversely, a <dfn>non-local boundary default action</dfn> will interact with the page such as scroll chaining or a navigation action.
60
63
61
64
Overview {#overview}
62
65
==========================
@@ -102,13 +105,13 @@ Values have the following meanings:
This value indicates that the element must not perform <a>scroll chaining</a>to any ancestor along the scroll chain regardless of whether the scroll originated at this element or one of its descendants. This value must not modify the overscroll behavior.
108
+
This value indicates that the element must not perform <a>non-local boundary default actions</a>. The user agent must not perform scholl chaining to any ancestors along the <a>scroll chain</a> regardless of whether the scroll originated at this element or one of its descendants. This value must not modify the behavior of how <a>local boundary default actions</a> should behave, such as overscroll behavior and navigation guestures.
106
109
<dt><dfn>none</dfn>
107
110
<dd>
108
-
This value implies the same behavior as <a>contain</a> and in addition this element must also not show any overscroll affordances or perform any navigation guestures.
111
+
This value implies the same behavior as <a>contain</a> and in addition this element must also not perform <a>local boundary default actions</a> such as showing any overscroll affordances or performing any navigation guestures.
109
112
<dt><dfn>auto</dfn>
110
113
<dd>
111
-
This value indicates that the element should perform the usual <a>default action</a> with respect to both <a>scroll chaining</a>, overscroll and navigation guestures.
114
+
This value indicates that the user agent should perform the usual <a>boundary default action</a> with respect to both <a>scroll chaining</a>, overscroll and navigation guestures.
112
115
</dl>
113
116
114
117
Note: In the case where a user agent does not implement scroll chaining and overscroll affordances, these values will have no side effects for a compliant implementation.
<h2class="no-num no-toc no-ref heading settled" id="subtitle"><spanclass="content">Draft Community Group Report, <timeclass="dt-updated" datetime="2017-05-05">5 May 2017</time></span></h2>
1369
+
<h2class="no-num no-toc no-ref heading settled" id="subtitle"><spanclass="content">Draft Community Group Report, <timeclass="dt-updated" datetime="2017-05-08">8 May 2017</time></span></h2>
<p>A non passive event listener will delay scrolling because the user agent will have to wait for the result of the event listener to determine if <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#dom-event-preventdefault">preventDefault</a> was called causing increased scroll latency.</p>
1433
1433
<lidata-md="">
1434
-
<p>When scrolling is performed near the edge of the <adata-link-type="dfn" href="#scroll-boundary" id="ref-for-scroll-boundary-1">scroll boundary</a><adata-link-type="dfn"> the </a><adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> may cause both scrolling to the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> and a <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-1">boundary default action</a>. Calling <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#dom-event-preventdefault">preventDefault</a> will not only cancel the <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-2">boundary default action</a> but also the scroll to the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a>.</p>
1434
+
<p>When scrolling is performed near the edge of the <adata-link-type="dfn" href="#scroll-boundary" id="ref-for-scroll-boundary-1">scroll boundary</a><adata-link-type="dfn">, the </a><adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> may cause both scrolling to the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> and a <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-1">boundary default action</a>. Calling <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#dom-event-preventdefault">preventDefault</a> will not only cancel the <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-2">boundary default action</a> but also the scroll to the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a>.</p>
1435
1435
<lidata-md="">
1436
1436
<p>The <adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> for the event may also provide additional behavior that the author does not want to cancel such as an overscroll affordance. <adata-link-type="dfn" href="https://dom.spec.whatwg.org/#dom-event-preventdefault">preventDefault</a> doesn’t allow the content author to cancel only some of the <adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default actions</a> such as scroll chaining.</p>
<p><dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="scroll-chaining">Scroll chaining</dfn> is when scrolling is propagated from one <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> to an ancestor <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> following the <adata-link-type="dfn" href="#scroll-chain" id="ref-for-scroll-chain-2">scroll chain</a>. Typically scroll chaining is performed starting at the event target recursing up the <adata-link-type="dfn" href="https://www.w3.org/TR/css-display-3/#containing-block-chain">containing block chain</a>. When a <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> in this chain receives a scroll event or gesture it may act on it and/or pass it up the chain. Chaining typically occurs when the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a> has reached its boundary.</p>
1445
1445
<p>A <dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="scroll-chain">scroll chain</dfn> is the order in which scrolling is propagated from one <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> to another.</p>
1446
1446
<p><dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="scroll-boundary">Scroll boundary</dfn> refers to when the scroll position of a <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> reaches the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a><adata-link-type="dfn">. If a scroll container has no potential to scroll, because it does not </a><adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#overflow">overflow</a> in the direction of the scroll, the element is always considered to be at the scroll boundary.</p>
1447
-
<p><dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="boundary-default-action">Boundary default action</dfn> refers to the user-agent-defined <adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> performed when scrolling against the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a>. This may be scroll chaining, showing an overscroll affordance and/or performing a navigation action.</p>
1447
+
<p><dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="boundary-default-action">Boundary default action</dfn> refers to the user-agent-defined <adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> performed when scrolling against the edge of the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a>. A <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-3">boundary default action</a> is said to be <dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="local">local</dfn>, for example overscroll, if it is performed on the <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> without interacting with the page. Conversely, a <dfnclass="dfn-paneled" data-dfn-type="dfn" data-noexport="" id="non-local-boundary-default-action">non-local boundary default action</dfn> will interact with the page such as scroll chaining or a navigation action.</p>
<p>This module introduces control over the behavior of a <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> element when its <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scrollport">scrollport</a> reaches the boundary of its scroll box. It allows the content author to specify that a <adata-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container">scroll container</a> element must prevent scroll chaining and/or overscroll affordances.</p>
<dd> This value indicates that the element must not perform <adata-link-type="dfn" href="#scroll-chaining" id="ref-for-scroll-chaining-3">scroll chaining</a>to any ancestor along the scroll chain regardless of whether the scroll originated at this element or one of its descendants. This value must not modify the overscroll behavior.
1523
+
<dd> This value indicates that the element must not perform <adata-link-type="dfn" href="#non-local-boundary-default-action" id="ref-for-non-local-boundary-default-action-1">non-local boundary default actions</a>. The user agent must not perform scholl chaining to any ancestors along the scroll chain regardless of whether the scroll originated at this element or one of its descendants. This value must not modify the behavior of how <adata-link-type="dfn" href="#local" id="ref-for-local-1">local boundary default actions</a> should behave, such as overscroll behavior and navigation guestures.
<dd> This value implies the same behavior as <adata-link-type="dfn" href="https://infra.spec.whatwg.org/#list-contain">contain</a> and in addition this element must also not show any overscroll affordances or perform any navigation guestures.
1525
+
<dd> This value implies the same behavior as <adata-link-type="dfn" href="https://infra.spec.whatwg.org/#list-contain">contain</a> and in addition this element must also not perform <adata-link-type="dfn" href="#local" id="ref-for-local-2">local boundary default actions</a> such as showing any overscroll affordances or performing any navigation guestures.
<dd> This value indicates that the element should perform the usual <adata-link-type="dfn" href="https://www.w3.org/TR/uievents/#default-action">default action</a> with respect to both <adata-link-type="dfn" href="#scroll-chaining" id="ref-for-scroll-chaining-4">scroll chaining</a>, overscroll and navigation guestures.
1527
+
<dd> This value indicates that the user agent should perform the usual <adata-link-type="dfn" href="#boundary-default-action"id="ref-for-boundary-default-action-4">boundary default action</a> with respect to both <adata-link-type="dfn" href="#scroll-chaining" id="ref-for-scroll-chaining-3">scroll chaining</a>, overscroll and navigation guestures.
1528
1528
</dl>
1529
1529
<pclass="note" role="note"><span>Note:</span> In the case where a user agent does not implement scroll chaining and overscroll affordances, these values will have no side effects for a compliant implementation.</p>
1530
-
<pclass="note" role="note"><span>Note:</span> Programmatic scrolling is clamped and can not trigger any <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-3">boundary default actions</a>.</p>
1530
+
<pclass="note" role="note"><span>Note:</span> Programmatic scrolling is clamped and can not trigger any <adata-link-type="dfn" href="#boundary-default-action" id="ref-for-boundary-default-action-5">boundary default actions</a>.</p>
0 commit comments