Closed Bug 1987284 Opened 10 months ago Closed 10 months ago

Layout doesn't notice when the `<body>` that propagates overflow to the viewport stops being "the body element"

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1594297

People

(Reporter: Oriol, Unassigned)

Details

Attachments

(1 file)

Attached file testcase

Run the attached testcase.
You should see a green square with no red, but there is some red.
If you click the button to force a relayout, then it gets fixed.

I think the reason is that the HTML produces one <body> element, which is considered to be "the body element", and thus it can propagate its overflow to the viewport.

But then JS inserts another <body> before it. Thus the clone becomes "the body element", and the original one should stop propagating its overflow. But Firefox doesn't update it.

I think this is a dup of bug 1594297.

Status: NEW → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1594297
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: