Open Bug 1975135 Opened 1 year ago Updated 1 year ago

[css-properties-values-api] With animated custom property, whose value is used in CSS transform, Firefox doesn't repaint intermediate states during the animation

Categories

(Core :: CSS Transitions and Animations, defect)

Firefox 140
defect

Tracking

()

People

(Reporter: roland, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file firefox.html —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Steps to reproduce:

  1. Open attached firefox.html

Actual results:

The red box animating to its position but frequently the first render show that last state of the animation or jumps into the middle of the animation.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 140.0.2 (64-bit)

Expected results:

the red box should animation from the bottom of the page to its original place

Rarely Firefox plays the animation as expected, refresh the page.

Monitor refresh rate: 144hz

If transform property directly animated, this bug does not happen.

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

Can confirm.
Chrome: The red box slides from the bottom to the top
Firefox: The red box just appears.

Can repro on a build from Jan2024, so not a new regression.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Thanks for the bug report and the testcase.

One observation: if I reload the page with DevTools open, then I get expected-results -- the red box smoothly animates onscreen. So this seems to be some sort of invalidation bug.

Severity: -- → S3
Component: Layout → CSS Transitions and Animations
Summary: Skipping animation on page load when animating custom transform variable → [css-properties-values-api] With animated custom property, whose value is used in CSS transform, Firefox doesn't repaint intermediate states during the animation
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: