Skip to content

css('animation-iteration-count', 5) doesn't apply style to element #2792

@ufologist

Description

@ufologist

When I use css('animation-iteration-count', 5) I expect element has style="-webkit-animation-iteration-count: 5;" (this vendor prefix is just a example), but it doesn't.

So I debug jQuery.js, I found when I use css('animation-iteration-count', 5) actually become style[ 'WebkitAnimationIterationCount' ] = 5 + 'px'.
Browser consider it a illegal value, because animation-iteration-count only accept infinite | <number>, so this style don't have effect.

This is a reproduceBug demo

So that cssNumber shoud add animationIterationCount property to prevent automatically add "px" to the value.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions