Skip to content
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

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

ewilligers
Copy link
Contributor

No description provided.

@ewilligers ewilligers force-pushed the display-not-animated branch from 159ed63 to c704991 Compare July 26, 2016 05:03
@@ -150,6 +150,10 @@
return value;
}

function isPermittedKeyframeProperty(property) {
return property !== 'display' && property.lastIndexOf('animation', 0) === -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not indexOf()?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah missed the , 0.

@alancutter
Copy link
Contributor

LGTM with nits.

The description should reference the bug it's fixing.

@ewilligers ewilligers force-pushed the display-not-animated branch 2 times, most recently from 2868354 to e90aa97 Compare July 26, 2016 07:05
@alancutter
Copy link
Contributor

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
@ewilligers ewilligers force-pushed the display-not-animated branch from e90aa97 to 5eae142 Compare July 26, 2016 07:48
@ewilligers
Copy link
Contributor Author

A test fails.
Now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants