Open
Bug 1794011
Opened 3 years ago
Updated 3 years ago
Could css transitions with a delay add their RefreshObserver at the end of the delay?
Categories
(Core :: CSS Transitions and Animations, enhancement)
Core
CSS Transitions and Animations
Tracking
()
NEW
People
(Reporter: florian, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: power)
See this profile of the 300ms opacity transition of the "playing" label under tab names, that starts playing with a 2.7s delay after the media has stopped playing: https://share.firefox.dev/3ClzwkW
In the profile I see refresh driver ticks on the main thread, and composites on the Compositor thread. Could we avoid all these wake-ups by adding the refresh observer only when the delay is over?
Comment 1•3 years ago
|
||
I wonder how much power consumption it reduces in the wild. I mean, how often do we see this kind of positive delay transitions? If we want to avoid the case in our code, triggering the CSS transition in a setTimeout callback would be an easy and reasonable way I think.
You need to log in
before you can comment on or make changes to this bug.
Description
•