Skip to content

Commit

Permalink
fix(css): scroll chaining can be stopped on iframes (#28918)
Browse files Browse the repository at this point in the history
* fix(css): scroll chaining can be stopped on iframes

* Update files/en-us/web/css/overscroll-behavior/index.md

Co-authored-by: wbamberg <[email protected]>

---------

Co-authored-by: wbamberg <[email protected]>
  • Loading branch information
OnkarRuikar and wbamberg authored Sep 6, 2023
1 parent 7a3d9df commit a4b661a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/overscroll-behavior/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ By default, mobile browsers tend to provide a "bounce" effect or even a page ref

In some cases, these behaviors are not desirable. You can use `overscroll-behavior` to get rid of unwanted scroll chaining and the browser's Facebook/Twitter app-inspired "pull to refresh"-type behavior.

Note that this property applies only to {{Glossary("Scroll_container", "scroll containers")}}. In particular, since an [`<iframe>`](/en-US/docs/Web/HTML/Element/iframe) is not a scroll container, this property cannot be used to stop scroll chaining for iframes.
Note that this property applies only to {{Glossary("Scroll_container", "scroll containers")}}. In particular, since an [`<iframe>`](/en-US/docs/Web/HTML/Element/iframe) is not a scroll container, setting this property on an iframe has no effect. To control scroll chaining from an iframe, set `overscroll-behavior` on both the [`<html>`](/en-US/docs/Web/HTML/Element/html) and the [`<body>`](/en-US/docs/Web/HTML/Element/body) elements of the iframe's document.

## Formal definition

Expand Down

0 comments on commit a4b661a

Please sign in to comment.