-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature policy: animations] Description of animations needs review #11
Comments
Thanks for filing these. I will get back to this thread and fix the explainer after concluding the main promise of the feature mostly discussed in issues #10 and w3c/webappsec-permissions-policy#204. |
Revised the animations policy to propose a modified policy that blocks layout inducing animations as opposed to the non-composited animations. The changed is motivated discussions in issues #202, #203, and #204.
Revised the animations policy to propose a modified policy that blocks layout inducing animations as opposed to the non-composited animations. The changed is motivated discussions in issues #202, #203, and #204.
Reviving this thread as the animation policy has been reworked. It no longer deals with composited animations and is now about disabling certain layout animations instead. Please, take another look. |
Thanks for addressing my comments. I'm afraid the are still a few inaccuracies (e.g. there's no More importantly, however, I still don't think we'd be interested in implementing this--the |
(apologies for the delayed response) AFAIK on Chrome the aforementioned animations do not always lead to re-running layout; the policy is based on assuming the worst, i.e., if the animation can in general cause layout changes then it will be disabled. Understandably this would block certain animations which would not have caused re-layout; however the policy is meant to be a promise on decreasing the number of layout runs on a page and ideally lead to more responsive pages. |
The feature policy description appears to have a lot of inaccuracies. e.g.
Or CSS animations, or Web Animations, or SVG SMIL, or JavaScript.
The animations still run on the CPU. The GPU is just used for much of the heavy-lifting of producing each animation frame.
Most CSS properties are not "interpolable". See how many properties have a
'discrete'
animation type in property-list.js.Furthermore, "interpolable" is not dependent just on the property, but on the specific values being used (e.g.
auto
cannot currently be smoothly interpolated with100px
).background-image
can be interpolated in Webkit-based engines (including Blink) usingcross-fade()
.The text was updated successfully, but these errors were encountered: