Closed Bug 1936156 Opened 11 months ago Closed 11 months ago

Poor interaction between scroll{Width,Height} and margin collapsing

Categories

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

defect

Tracking

()

VERIFIED FIXED
135 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 --- verified
firefox135 --- verified

People

(Reporter: emilio, Assigned: emilio)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file Test-case.

When calling scroll{Width,Height} on an overflow: visible frame, after bug 1931490 we account for margins that have really collapsed through to our ancestor BFC. That causes us to report different client / scroll margins, which eventually end up confusing the matrix-react benchmark code (see bug 1931490 comment 14 and following).

Flags: needinfo?(emilio)

Ok, diagnostic and test-case in bug 1936156.

Flags: needinfo?(emilio)

err, obviously commented in the wrong bug :)

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 1931490

So that our client{Width,Height} and scroll{Width,Height} calculations
make sense.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Duplicate of this bug: 1936238
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a661bff10b1f Don't consider collapsed margins for in-flow line bounds if we're not a BFC. r=dshin
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49641 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Upstream PR merged by moz-wptsync-bot
Flags: in-testsuite+

Comment on attachment 9442577 [details]
Bug 1936156 - Don't consider collapsed margins for in-flow line bounds if we're not a BFC. r=dshin,#layout

Beta/Release Uplift Approval Request

  • User impact if declined/Reason for urgency: Needed to uplift the regressor.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Comment 0
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Returns to pre regression behavior for a subset of cases.
  • String changes made/needed: none
  • Is Android affected?: Yes
Attachment #9442577 - Flags: approval-mozilla-beta?
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I've reproduced the issue with an affected Nightly build (2024-12-09), using the test case from comment 0.

The issue is verified as fixed on latest Nightly 135.0a1 under Win 11 x64, macOS 14 and Ubuntu 22.04. The "[not-scrollable] scroll" and "[scrollable] scroll" client values are correctly matching.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Comment on attachment 9442577 [details]
Bug 1936156 - Don't consider collapsed margins for in-flow line bounds if we're not a BFC. r=dshin,#layout

Approved for 134RC, thanks.

Attachment #9442577 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

This is also verified as fixed on 134 RC (treeherder build), running Win 11, macOS 14 and Ubuntu 24.04

Regressions: 1942036
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: