Element.animate can trigger multiple forced recalc styles |
||||
Issue descriptionThere are a bunch of elements at http://output.jsbin.com/pokidu/quiet that move when you click on the page. At the start I loop over them and set up element.animate. According to Timeline this is triggering recalc styles per element, which could cause jank at the start of the animation. Can these be batched up?
,
Jul 14 2016
The recalc triggered in the demo is removed in https://codereview.chromium.org/2043273002/ so this might already be fixed. alancutter@ please check.
,
Jul 15 2016
Thanks for the report. Seeing the same trace on Linux dev branch.
,
Jul 20 2016
Checked on a ToT build of Chromium, the style recalcs no longer appear in the DevTools timeline. https://codereview.chromium.org/2043273002/ landed @403861 while dev branched @403382 which explains why I didn't see it fixed when testing on dev. |
||||
►
Sign in to add a comment |
||||
Comment 1 by cbiesin...@chromium.org
, Jul 14 2016