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)
Core
Layout: Scrolling and Overflow
Tracking
()
RESOLVED
DUPLICATE
of bug 1594297
People
(Reporter: Oriol, Unassigned)
Details
Attachments
(1 file)
|
650 bytes,
text/html
|
Details |
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.
Comment 1•10 months ago
|
||
I think this is a dup of bug 1594297.
You need to log in
before you can comment on or make changes to this bug.
Description
•