Closed Bug 1936276 Opened 9 months ago Closed 8 months ago

beta.destinyitemmanager.com - Incorrect wrapping causing overlapping on items

Categories

(Core :: Layout: Grid, defect, P1)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox133 --- unaffected
firefox134 + fixed
firefox135 --- fixed

People

(Reporter: rbucata, Assigned: TYLin)

References

(Regression, )

Details

(Keywords: regression, webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:web-bugs], [wptsync upstream])

User Story

platform:windows,mac,linux,android
impact:content-missing
configuration:general
affects:all
branch:release
diagnosis-team:layout

Attachments

(5 files)

Environment:
Operating system: Windows 10
Firefox version: Firefox 134.0

Steps to reproduce:

  1. Navigate to: https://jeffgca.github.io/dim-fx-bug/
  2. Observe the layout of items

https://github.com/DestinyItemManager/DIM/issues/10820

Expected Behavior:
Items are correctly wrapped

Actual Behavior:
Items are overlapped

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release
  • Does not reproduce in chrome

Created from https://github.com/webcompat/web-bugs/issues/144955

The icons inside the items seem broken as well, as Chrome show empty rectangles. If a new, separate bug is to be submitted, please let me know

Attached video ff vs chrome

Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.

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

:TYLin, since you are the author of the regressor, bug 1930672, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(aethanyc)

The empty icon boxes are just due to a missing font - the repro could be minimized further, but the important issue is the overlapping boxes containing the icons due to an incorrect width calculation.

Severity: -- → S2
User Story: (updated)
Priority: -- → P1

possible site-side workaround:

If anyone here happens to be a developer on the site or be in touch with the developers, this seems to be an effective workaround:

.sub-bucket {
  min-width: 0;
}

The issue here is that Firefox is resolving too large of an automatic minimum width and refusing to shrink the "sub-bucket" grid (which itself is a flex item) because we're running into what-we-think-is-its-minimum-size.

If we allow it to shrink, though (e.g. via that min-width), then everything appears to work out just fine.

And from some brief testing, I don't think this css rule impacts the sizing in Chrome at all, which is good (in the sense of it being a harmless workaround).

Attachment #9443071 - Attachment description: testcase 1 → testcase 2 (reduced)

[Tracking Requested - why for this release]: regression that's made it to beta, causing overlapping content, that would ideally be good to avoid shipping.

TYLin: it looks like the regressor (bug 1930672) was pretty targeted -- perhaps we should request a backout from beta, to have more time to investigate/address this bug here before it hits release?

Important correction for tracking/prioritization/next-action purposes:
(In reply to Raul Bucata from comment #0)

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in firefox-nightly, and firefox-release

This actually does not reproduce in firefox-release, at least not for me (not yet). Per regression window in comment 3, this regressed from a patch in bug 1930672 that is currently included in 134 (current beta) but was not included in 133 (current release).

(It looks like this matches the original reporter's experience, too -- in https://github.com/webcompat/web-bugs/issues/144955#issuecomment-2526270353 they show a screenshot of nightly 135 with overlap, followed by Chrome with no overlap and release 133 with no overlap.)

[Morphing into a regular platform bug, since this is a regression rather than a longstanding webcompat issue.]

Component: Site Reports → Layout: Grid
OS: Windows 10 → All
Product: Web Compatibility → Core
Version: unspecified → Trunk
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

I’m the original reporter of the webcompat bug and that’s correct, I wasn’t able to reproduce in current release version. Not sure where that crept in - the upstream bug for the site was reported 12 days ago:

https://github.com/DestinyItemManager/DIM/issues/10820

( DIM is a website companion app for a major online game, for some context )

flex-item-grid-container-auto-repeat-001.html is adapted from Daniel Holbert's
reduced testcase in Bug 1936276 Comment 9.

flex-item-grid-container-auto-repeat-002.html is identical to 001.html except
that the width of .item-grid-container are set to a pixel value rather than
a percentage values. This test has failed before introducing the regression.

Flags: needinfo?(aethanyc)
Blocks: 1936854
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/d5e36f13e8cd Revert Bug 1930672 to fix the overlapping icons on beta.destinyitemmanager.com. r=layout-reviewers,dholbert https://hg.mozilla.org/integration/autoland/rev/bea77c09d334 Add web-platform tests for grid container as flex item with auto repeat columns. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49660 for changes under testing/web-platform/tests
Whiteboard: [webcompat-source:web-bugs] → [webcompat-source:web-bugs], [wptsync upstream]

(ni=tylin as a reminder to request beta uplift when possible [after it lands on central], to avoid shipping this regression in 134. Thanks!)

Flags: needinfo?(aethanyc)

(In reply to jeff from comment #14)

I’m the original reporter of the webcompat bug and that’s correct, I wasn’t able to reproduce in current release version. Not sure where that crept in - the upstream bug for the site was reported 12 days ago:

Thanks for the upstream bug reference!

We did manage to track down where the bug crept in, and probably it'll be fixed in tomorrow's Nightly build. (and hopefully fixed in Firefox Beta 134 within a week or maybe sooner, depending on beta update timelines etc)

(In reply to Daniel Holbert [:dholbert] from comment #18)

(ni=tylin as a reminder to request beta uplift when possible [after it lands on central], to avoid shipping this regression in 134. Thanks!)

Aha, I see we backed out on beta already here:
https://bugzilla.mozilla.org/show_bug.cgi?id=1930672#c11

(The process was just slightly different for trunk because of the merge conflict, which is why we had the custom patch here.)

So we can consider Firefox 134beta fixed-by-backout, I think (just as 135 will be fixed-by-backout as soon as the patch merges from autoland to central).

Flags: needinfo?(aethanyc)
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: