Closed Bug 1613684 Opened 5 years ago Closed 3 years ago

Elements dimension and position is changing

Categories

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

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: andro.marian.v94, Unassigned)

Details

Attachments

(2 files)

Attached video Preview.mp4

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Websites: https://www.twitch.tv/, https://hub.warframestat.us/

Actual results:

The dimension of the elements is changing and the text is moving down.

Component: Untriaged → Layout
Product: Firefox → Core

Andronachi,

Thanks for reporting this bug!

This is kind of a necessary side-effect of how 3d transforms are implemented in Firefox: when a transform is applied or removed, the element gets promoted to its own 'layer' and this can cause a subtle shift content in some cases, due to changes in rounding behavior from content being rendered into a single surface vs. multiple surfaces that are composited together.

The workaround for this sort of thing is for sites to add will-change: transform; on elements that they intend to apply a dynamic transform to. This lets the element become a layer up-front, avoiding the unexpected "snap" when the transform is added.

I have tested this on both sites, and it appears to resolve the issue on my MacOS machine:

RE: https://hub.warframestat.us/

.panel-header {
    will-change: transform;
}

RE: https://www.twitch.tv/

.tw-hover-accent-effect__children {
    will-change: transform;
}

I am going to re-classify this under Web Compatibility.

Component: Layout → Desktop
Product: Core → Web Compatibility
Version: 72 Branch → unspecified

Hi Mike,

Perhaps someone on the webcompat team could reach out to Twitch about this, and maybe also report it to the Warframe folks if possible.

Flags: needinfo?(miket)
Attached image Spigot.png

I found that code to make my animation to be smooth and not jerky on: https://bugzilla.mozilla.org/show_bug.cgi?id=1608243
I put it on body of the page and animation is smooth how should be. But the Horizontal Scrollbar is bigger.

Sure, we can try to reach out.

Flags: needinfo?(miket)
Priority: -- → P3

This happening to the Firefox Homepage when toggle Top Sites and Highlights.
Still not sure why need in Firefox is that much visible. In Chrome is not that bad.

We appreciate your report. I was not able to reproduce the issue. Navigating on both twitch.tv and warframestat.us, the elements do not present any issues, although warframestat.us seems to have a little upgrade in the UI.

Reporter, is the issue still reproducible for you?

Tested with:

Browser / Version: Firefox Release 100.0.2 (64-bit)/ Firefox Nightly 102.0a1 (2022-05-23) (64-bit)
Operating System: Windows 10 PRO x64

Flags: needinfo?(andro.marian.v94)
Status: UNCONFIRMED → NEW
Ever confirmed: true

Redirect a needinfo that is pending on an inactive user to the triage owner.
:denschub, since the bug has recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(andro.marian.v94) → needinfo?(dschubert)
Severity: normal → S3

Closing as worksforme as per comment 6 and my own quick testing.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(dschubert)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: