Skip to content

Commit a34b827

Browse files
committed
Merge branch 'master' into correction-contain
2 parents 1f07f4e + c14b06c commit a34b827

4 files changed

Lines changed: 244 additions & 193 deletions

File tree

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Boundary Scroll Action
1+
# Scroll Boundary Behavior
22
---
3+
# Draft Specification
4+
https://wicg.github.io/scroll-boundary-behavior
35

46
# Problem
57

@@ -33,11 +35,3 @@ where:
3335
* none - Same as contain but also hint that no overscroll affordance should be triggered.
3436

3537
This should apply to all, non-programatic, user scroll actions.
36-
37-
# Issues to file
38-
39-
* Should the property disable scroll chaining through itself to an ancestor if scrolling is initiated from a child element?
40-
41-
* What if the property is attached to a potentially scrollable element without a scrollbox?
42-
43-
* What if the property is attached to an element which is not scrollable?

index.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Scroll chaining and boundary default actions {#scroll-chaining-and-boundary-defa
5757

5858
A <dfn>scroll chain</dfn> is the order in which scrolling is propagated from one <a>scroll container</a> to another.
5959

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.
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.
6161

6262
<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.
6363

@@ -110,6 +110,7 @@ Values have the following meanings:
110110
ancestors along the <a>scroll chain</a> regardless of whether the scroll originated at this
111111
element or one of its descendants. This value must not modify the behavior of how <a>local
112112
boundary default actions</a> should behave, such as overscroll behavior.
113+
113114
<dt><dfn>none</dfn>
114115
<dd>
115116
This value implies the same behavior as <a>contain</a> and in addition this element must also
@@ -123,3 +124,14 @@ Values have the following meanings:
123124
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.
124125

125126
Note: Programmatic scrolling is clamped and can not trigger any <a>boundary default actions</a>.
127+
128+
129+
Security and Privacy Considerations
130+
===================================
131+
There are no known security or privacy impacts of this feature. The feature may be used to prevent
132+
certain native UI features such as overscroll affordances and overscroll navigations (e.g., pull-
133+
to-refresh, swipe navigations). However, this does not expose any additional abilities beyond what
134+
is already possible in the platform e.g., by preventing the default action of the event that would
135+
cause a scroll.
136+
137+

0 commit comments

Comments
 (0)