Icons inside buttons are misaligned at office.com
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(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)
Environment:
Operating System: Windows 10 PRO x64
Firefox version: Firefox Nightly 117.0a1 (2023-07-19) (64-bit)
Preconditions:
Clean profile
Steps to reproduce:
- Navigate to: https://www.office.com/
- Scroll the page towards the end.
- 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.
Comment 1•2 years ago
|
||
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
Updated•2 years ago
|
Updated•2 years ago
|
Comment 2•2 years ago
|
||
This seems to be happening in release and only on hovering and only sometimes.
Comment 3•2 years ago
|
||
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.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
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".
Updated•2 years ago
|
Comment 5•2 years ago
|
||
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.
Comment 6•2 years ago
|
||
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;
}
}
Comment 7•2 years ago
|
||
Comment 8•2 years ago
|
||
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.
Comment 9•2 years ago
|
||
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.
Comment 10•2 years ago
•
|
||
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.
Updated•2 years ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•8 months ago
|
Comment 11•1 month ago
|
||
They have redesigned.
Description
•