Closed Bug 1284720 Opened 10 years ago Closed 10 years ago

Expandoboard demo does not clip contents correctly

Categories

(Core :: DOM: Animation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1217803

People

(Reporter: birtles, Unassigned)

References

()

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file)

STR: 1. Go to http://web-animations.github.io/web-animations-demos/ 2. Click 'Expandoboard' (Note that going directly to http://web-animations.github.io/web-animations-demos/#expandoboard does not work in either Chrome or Firefox) Expected results: The animated pattern is clipped to the circle outline and moves smoothly. Actual results: The animated pattern frequently extends beyond the circle outline and there are jumps in its movement.
I have not checked what polyfill does inside the example, but this demo works correctly if both dom.animations-api.element-animate.enabled and dom.animations-api.core.enabled are false.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #1) > I have not checked what polyfill does inside the example, but this demo > works correctly if both dom.animations-api.element-animate.enabled and > dom.animations-api.core.enabled are false. The polyfill uses Element.animate() when available. i.e. If we turn off those prefs it will animate using JS. If we turn either of those prefs on, we'll run the animation as a native animation, likely on the compositor thread.
(In reply to Robert Longson from comment #3) > is bug 1284586 related? Seems likely.
Sounds like an OMTA issue. Kats might know who best to talk to about this and was the author of the related bug patch.
Flags: needinfo?(bugmail)
Whiteboard: [gfx-noted]
(In reply to Brian Birtles (:birtles; away 14-18 July, busy 19-22 July) from comment #4) > (In reply to Robert Longson from comment #3) > > is bug 1284586 related? > > Seems likely. It's not clear to me why that bug would be related. It seems like the clipping issue occurs even with paint-skipping or APZ off. Bug 1284586 is specifically about the clip lagging behind when APZ and paint-skipping are on.
Flags: needinfo?(bugmail)
In fact given that it happens with APZ off it seems like the layout side of things isn't clipping properly.
Component: Graphics: Layers → Layout
Thanks Alice!
Component: Layout → DOM: Animation
It doesn't look like this is a regression. It looks like it has been getting progressively closer to working. It only appeared to work in the first place because we didn't implement Animatable.animate so the polyfill was taking effect. Once we implemented Animatable.animate we started running this animation using native code and it went from crashing, to rendering nothing, to rendering something but with graphical defects. So, we still don't know what the cause of this is.
Yeah, this issue happens with CSS animations.
This testcase is lovely and looks like something Matt Woodrow would want to fix.
With testcase attachment 8770760 [details], layers.offmainthreadcomposition.async-animations = false seems to fix
Blocks: enable-omt-animations
No longer blocks: 1260983
This seems to be a dup of bug 1217803.
I've confirmed Markus's suggestion in bug 1217803 comment 10 fixes this issue.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: