-
Notifications
You must be signed in to change notification settings - Fork 30
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
Do not animate 'display' or the 'animation*' properties. #474
Do not animate 'display' or the 'animation*' properties. #474
Conversation
159ed63
to
c704991
Compare
@@ -150,6 +150,10 @@ | |||
return value; | |||
} | |||
|
|||
function isPermittedKeyframeProperty(property) { | |||
return property !== 'display' && property.lastIndexOf('animation', 0) === -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not indexOf()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastIndexOf(, 0) searches backwards from 0, meaning only one offset is tested. If the property name is long, indexOf needs to check many offsets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah missed the , 0
.
LGTM with nits. The description should reference the bug it's fixing. |
2868354
to
e90aa97
Compare
A test fails. |
Certain properties are not animatable. For example, properties defining animation parameters are not animatable. https://w3c.github.io/web-animations/#concept-not-animatable Web Animations must ignore such properties. This closes web-animations#394
e90aa97
to
5eae142
Compare
|
No description provided.