Open Bug 1856571 Opened 2 years ago Updated 2 years ago

Shadow DOM and display:none style keeps the same scrollTop among elements

Categories

(Core :: Layout: Scrolling and Overflow, defect, P3)

Firefox 118
defect

Tracking

()

People

(Reporter: jgreffe, Unassigned)

References

(Depends on 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Steps to reproduce:

MacOS M1 Ventura 13.6 + Firefox 118.0.1 (64-bit)

Here is a JSFiddle which states the current issue:
https://jsfiddle.net/jgreffe/d2b49k6u/

Actual results:

  • scroll both blue & orange divs to bottom and click toggle
  • in Chrome, Safari & Edge
    • green & red divs are still at the top: expected
  • in Firefox:
    • green div is at the top: expected
    • red div is at the bottom: unexpected: red container should be at the top because we didn't specifically scroll into

Expected results:

  • red div should be at the top
Component: Untriaged → Layout: Scrolling and Overflow
Product: Firefox → Core

Hah, ironically I was just looking into a similar issue (bug 1856655), and I think my proposals in bug 1856673 / bug 1856674 would fix this.

Status: UNCONFIRMED → NEW
Depends on: 1856673, 1856674
Ever confirmed: true
See Also: → 1856655

Thanks for your quick answer!
Unfortunately for this case I didn't find any workaround :/

The severity field is not set for this bug.
:hiro, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hikezoe.birchill)

Setting P3:S3 since, even if there's no workaround, users can scroll by themselves.

Severity: -- → S3
Flags: needinfo?(hikezoe.birchill)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.