Open Bug 1917340 Opened 2 months ago Updated 1 month ago

Firefox generates scrollable overflow (and creates unnecessary scrollbars) for transformed elements whose untransformed bounds would cause overflow

Categories

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

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

STR:

  1. Load https://bug1913927.bmoattachments.org/attachment.cgi?id=9423297 (testcase from bug 1913927)

ACTUAL RESULTS:
There's a vertical scrollbar on the black box

EXPECTED RESULTS:
No such vertical scrollbar.

We seem to be including the transformed element's untransformed-bounds in the scrollable overflow that we propagate up to the scroller. In some cases that's correct (e.g. when its untransformed bounds directly contribute to layout space), but in this case the parent element has a small fixed height, which apparently nerfs the scrollable-overflow-contribution from the transformed child, in other browsers.

This is not a regression (or not a recent one); I can reproduce the ACTUAL RESULTS at least as far back as Nightly 46.0a1 2016-01-01 with the linked testcase. (I didn't test any older builds than that.)

Chrome gives EXPECTED RESULTS and that seems to go back a ways, too; I tested Chrome 50 (also released in 2016) and I get expected-results there.

Summary: Firefox creates scrollbars for elements whose untransformed bounds would cause overflow → Firefox generates scrollable overflow (and creates unnecessary scrollbars) for transformed elements whose untransformed bounds would cause overflow

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