Re: [css-houdini-drafts] [css-animationworklet] Experiment with different sync models for animations with mixed accelerated and non-accelerated properties

>  @birtles can you share the thinking behind why Gecko have chosen to always keep geometric properties in sync?

The original implementation where we decided to synchronize geometric properties within an element predates my involvement in compositor animations so there may have been technical limitations, but for synchronizing across elements I know one site that motivated that was trello.com.

Specifically, trello.com triggers transitions on `margin-right` and `transform` at the same time. We would previously do the `transform` animation on the compositor and `margin-right` animation on the main thread and they would get out of sync and look awkward so we added a mechanism to detect if we have these geometric animations/transitions (or, I suppose "layout" animations/transitions) triggered at the same time, and, if we can't run them all on the compositor we run them all on the main thread so they stay in sync.

Details are in [Mozilla bug 1301305](https://bugzilla.mozilla.org/show_bug.cgi?id=1301305).

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/805#issuecomment-421187798 using your GitHub account

Received on Thursday, 13 September 2018 23:53:51 UTC