Closed Bug 1844515 Opened 3 years ago Closed 1 month ago

Icons inside buttons are misaligned at office.com

Categories

(Web Compatibility :: Site Reports, defect, P3)

Firefox 117
Desktop
Windows 10

Tracking

(Webcompat Priority:P3, Webcompat Score:4)

RESOLVED INVALID
Webcompat Priority P3
Webcompat Score 4

People

(Reporter: rbucata, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat:sightline][webcompat:core])

User Story

platform:windows,mac,linux
impact:significant-visual
configuration:general
affects:some
diagnosis-team:layout
branch:release
user-impact-score:90

Attachments

(6 files)

Attached image Screenshot_2.png —

Environment:
Operating System: Windows 10 PRO x64
Firefox version: Firefox Nightly 117.0a1 (2023-07-19) (64-bit)

Preconditions:
Clean profile

Steps to reproduce:

  1. Navigate to: https://www.office.com/
  2. Scroll the page towards the end.
  3. Observe the buttons located below the "More apps in fewer place" section.

Expected Behavior:
The icons inside the buttons are aligned.

Actual Behavior:
The icons inside the buttons are misaligned.

Notes:

  • Reproducible regardless of the status of ETP.
  • Reproducible on the latest build of Firefox Nightly and Release.
  • Works as expected using Chrome.

Verified this issue and it's still reproducible on Firefox versions 122 and 124.

Environment:
Operating system: Windows 10
Browsers: Firefox Nightly 124.0a1 (2024-01-30) / Firefox Release 122 / Chrome 121.0.6167.86

Note: Not reproducible on Chrome

Severity: -- → S3
Priority: P3 → P2

This seems to be happening in release and only on hovering and only sometimes.

I'm seeing it in Nightly as well, particularly after I reload the page. In the working state, there is some JS that runs and toggles the display attributes of selected tab. This looks like a JS timing issue with the page.

Severity: S3 → S4
User Story: (updated)
Priority: P2 → P3
Attached image screenshot in Sept 2024 —

I wasn't able to reproduce on first load, but I did a Ctrl+R "light reload" while viewing the relevant part of the page, and the bug immediately manifested.

Also, the design/content has changed very slightly since the screenshot in comment 0 was taken (or perhaps there's a geolocation-based difference in the content that gets shown). Here's a screenshot of how it looks for me today -- the heading is now "More apps in one place"; and the 3 buttons are labeled "For Organizations", "For Home" and "For Education".

Attachment #9423270 - Attachment description: screenshot in Aug 2024 → screenshot in Sept 2024

Here's a screencast showing me reloading the page while DevTools are open (in a separate window, with the "Console" tab focused), vs. while DevTools are closed.

When DevTools are opened, the bug happens briefly and then corrects itself. When they're closed, the bug doesn't automatically correct itself.

So: likely this is some sort of initial-broken-layout issue that gets fixed when DevTools triggers a sufficient amount of invalidation/flushing.

Attached file testcase 1 —

Here's a testcase from testcase-reducer.

The alignment issue reproduces for me at first-load of this testcase, regardless of my viewport-size, and regardless of whether if I have devtools open.

If I resize my viewport, the rendering fixes itself (and stays fixed) if I cross the viewport-width of 1084px, presumably because that triggers this style rule which forces the right kind of invalidation to kick us into fixing things:

      @media (min-width:1084px) {
        .icon-container {
          padding-right: 32px;
        }
      }

So this is a bug with absolute positioning inside of a relatively-positioned containing block, similar to bug 489100 and bug 1915992, but probably not-quite-the-same-as-those.

Attached file testcase 3 —

Interestingly, I can't reproduce if I remove the button wrapper (or morph it into a div), so I wonder if that means this has to do with the button measuring-reflow-and-then-vertically-centering behavior.

regression range:

INFO: Last good revision: 30ea2905130e85f9e1d8d56fa3097901eec6514b (2017-07-13)
INFO: First bad revision: 67cd1ee26f2661fa5efe3d952485ab3c89af4271 (2017-07-14)
INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=30ea2905130e85f9e1d8d56fa3097901eec6514b&tochange=67cd1ee26f2661fa5efe3d952485ab3c89af4271

In there, I would guess that bug 1308876 would have caused this; it added an optimization to make us reflow less aggressively, which is the sort of thing that might lead to an incorrect initial position in certain edge cases like this.

Looking at the already-filed regressions from that bug, it looks like bug 1597100 is quite similar -- both that bug and this bug involve an abspos element inside a relatively-positioned inline-level element, with the wrong initial position. So I think we can consider this a version of that platform bug.

Depends on: 1597100
User Story: (updated)
Webcompat Priority: --- → P3
Webcompat Score: --- → 4
Whiteboard: [webcompat:sightline]
User Story: (updated)
Whiteboard: [webcompat:sightline] → [webcompat:sightline][webcompat:core]

They have redesigned.

Status: NEW → RESOLVED
Closed: 1 month ago
User Story: (updated)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: