Open Bug 1818192 Opened 3 years ago Updated 3 years ago

Animation runs irregularly (or stops entirely) when the animated element is out of view

Categories

(Core :: CSS Transitions and Animations, defect)

Firefox 110
x86_64
All
defect

Tracking

()

Tracking Status
firefox-esr102 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- fix-optional

People

(Reporter: marijnh, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file test.html

When an animated element's bounding box is out of view, even if it contains elements that are positioned so that they still are in view, the animation doesn't seem to run reliably, and even stops running entirely.

Attached example page has an animated element that's pushed out of view, with a child that is in view, and shows this. The effects aren't entirely deterministic, but if you watch it blink, somewhere between 2 and 5 blinks in it loses its rhythm and often just stops.

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

Component: Untriaged → CSS Transitions and Animations
Product: Firefox → Core
Severity: -- → S3

(Slightly modified test case to push the element out of viewport reliably)

I believe this is because this check (nsIFrame::IsScrolledOutOfView) checks for the frame's own ink overflow rect, but not the ink-overflow rect of out-of-flow descendants that are positioned relative to something outside of it.

Since opacity doesn't create a containing block for abspos/fixed-pos elements, but applies to fixed-pos descendants, the IsScrolledOutOfView isn't quite accurate... I expect this is not really a recent regression, and I'm not sure what the best way to deal with this in a performant way...

OS: Linux → All

Set release status flags based on info from the regressing bug 1471174

:hiro, since you are the author of the regressor, bug 1471174, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(hikezoe.birchill)

Reporter: out of curiosity, did you happen to encounter on a real website that you visited (or are developing)?

Flags: needinfo?(marijnh)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: