Overscroll behavior does not apply to iframe
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox84 | --- | affected |
People
(Reporter: james.campbell, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Steps to reproduce:
If you apply overscroll-behaviour to the style element of an iframe it has no effect on the iframe's contents.
Like so:
<iframe style="overscroll-behaviour: contain"/>
Actual results:
The property has no effect - contain still causes scroll stacking
Expected results:
This property should have an effect like any other scrolling container and should take precedence over any other value set for the iframe's html document
Comment 1•4 years ago
|
||
Hi James,
I see that you have loaded three similar bugs. I'll like to take a look at all of them, but could you attach me a test case like it was done in this bug, please? https://bugzilla.mozilla.org/show_bug.cgi?id=1576010 . Or could you share the URL to codepen where I could test this?
Thanks in advance, Flor.
| Reporter | ||
Comment 2•4 years ago
|
||
| Reporter | ||
Comment 3•4 years ago
|
||
I've attached frames.html
Comment 4•4 years ago
|
||
James, first of all, I'm so sorry that I did not see the attached file. Sorry. Now I will look at it.
Comment 5•4 years ago
|
||
Hi,
Thanks for the details. I was able to reproduce the bug on Windows 10 on FF84. I believe that the severity is S4 or S3. I've chosen a component. If you consider that there's another component that's more proper for this case you may change it.
Best regards, Flor.
Comment 6•4 years ago
|
||
Thanks for filing all these bug James, much appreciated. I think overscroll is handled by APZ so I moved the bugs there. Thanks again!
Comment 7•4 years ago
|
||
(In reply to James Campbell from comment #0)
This property should have an effect like any other scrolling container and should take precedence over any other value set for the iframe's html document
Are you aware of other CSS properties which carry over from the iframe to its root scroll container in this way?
Are you aware of other browsers which carry the overscroll-behavior property over?
Comment 8•4 years ago
|
||
I believe this is a invalid bug. I suppose what the bug reporter wants to do is to specify the property on <html> instead of <iframe>.
Comment 9•4 years ago
•
|
||
I agree, I think this is invalid. The spec says the overscroll-behavior property applies to scroll container elements, and <iframe> elements are not scroll container elements.
If there's something I'm overlooking, please feel free to reopen the issue and provide more details.
If you'd like to propose a change to the spec, consider filing a spec issue (feel free to link to it from a comment here).
Description
•