Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overscroll-behavior: contain example specifies "or refreshes" when it shouldn't #29473

Closed
zfox23 opened this issue Oct 4, 2023 · 1 comment · Fixed by #29474
Closed

overscroll-behavior: contain example specifies "or refreshes" when it shouldn't #29473

zfox23 opened this issue Oct 4, 2023 · 1 comment · Fixed by #29474
Assignees
Labels
Content:CSS Cascading Style Sheets docs

Comments

@zfox23
Copy link
Contributor

zfox23 commented Oct 4, 2023

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior#values

What specific section or headline is this issue about?

Values

What information was incorrect, unhelpful, or incomplete?

The doc says:

Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects or refreshes)...

The "or refreshes" part shouldn't be there, because native browser navigation isn't allowed when overscroll-behavior: contain is set.

What did you expect to see?

Default scroll overflow behavior is observed inside the element this value is set on (e.g. "bounce" effects)...

Do you have any supporting links, references, or citations?

This issue was borne from a conversation with @dlrobertson of the Firefox Layout/Asynchronous Panning and Zooming (APZ) team, who said:

  • The issue had to do with the overscroll-behavior docs
  • specifically the contain docs say ... (e.g. "bounce" effects or refreshes)
  • The spec for contain indicates all non-local-boundary-default-action (including navigation) are not allowed
  • Note the spec example here indicates "A page wants to implement their own pull-to-refresh effect when contain is used"
  • So simply "or refreshes" should probably be removed from the MDN docs for overscroll-behavior: contain
  • That being said browser implementations are a bit all over the place here... We don't ship pull to refresh to the release channel and there are some implementation bugs out there
  • Botond Ballo, the tech lead of APZ discovered this... He's real helpful and knowledgeable on APZ things

Do you have anything more you want to share?

This is my first submitted issue to MDN 🎉 yay

@zfox23 zfox23 added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Content:CSS Cascading Style Sheets docs and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 4, 2023
@zfox23 zfox23 self-assigned this Oct 4, 2023
@theres-waldo
Copy link

Thanks for filing!

To provide some additional corroboration that the intent is for overscroll-behavior: contain to disable pull-to-refresh, this blog post on the Chrome blog specifically gives that as an example as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants