Closed Bug 1683128 Opened 4 years ago Closed 4 years ago

Overscroll behavior does not apply to iframe

Categories

(Core :: Panning and Zooming, defect)

Firefox 84
defect

Tracking

()

RESOLVED INVALID
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

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.

Flags: needinfo?(james.campbell)
Attached file frames.html
Flags: needinfo?(james.campbell)

I've attached frames.html

James, first of all, I'm so sorry that I did not see the attached file. Sorry. Now I will look at it.

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.

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Scrolling and Overflow
Ever confirmed: true
Product: Firefox → Core

Thanks for filing all these bug James, much appreciated. I think overscroll is handled by APZ so I moved the bugs there. Thanks again!

Component: Layout: Scrolling and Overflow → Panning and Zooming

(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?

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

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

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: