WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
182436
animation-play-state: paused causes very high cpu load because of style invalidation loop
https://bugs.webkit.org/show_bug.cgi?id=182436
Summary
animation-play-state: paused causes very high cpu load because of style inval...
Steffen Deusch
Reported
2018-02-02 08:31:57 PST
Hello everyone, when using animation-play-state: paused on an animated element and using a transition on a parent element, Safari, Safari TP and WebKit Nightly are suddenly recalculating styles all the time, causing a high cpu load. Opening the Web Inspector causes an even higher CPU load (using WebKit Nightly):
https://files.steffend.me/public/webkitbug/webkit-style-invalidation.html
Try to open the page in Safari and hover over the card. Then open the Web Inspector. The same is happening in MobileSafari on iOS 11.2(.x), causing the battery to drain fast. Next, try opening:
https://files.steffend.me/public/webkitbug/webkit-style-invalidation-playing.html
There, the issue doesn't happen, as the animation is not paused (also no high cpu usage in the Web Inspector).
Attachments
patch
(5.29 KB, patch)
2018-05-14 10:01 PDT
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-02-02 21:25:05 PST
<
rdar://problem/37182562
>
Antti Koivisto
Comment 2
2018-05-14 10:01:48 PDT
Created
attachment 340325
[details]
patch
WebKit Commit Bot
Comment 3
2018-05-15 01:59:58 PDT
Comment on
attachment 340325
[details]
patch Clearing flags on attachment: 340325 Committed
r231794
: <
https://trac.webkit.org/changeset/231794
>
WebKit Commit Bot
Comment 4
2018-05-15 02:00:00 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug