Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Percent Sign is Stripped From Keyframes Causing Them to Fail #68

@LiterallyDoge

Description

@LiterallyDoge

Hi and thanks for this plugin.

If you define:

@keyframes fancy-mouse-breathing-animation {
	0% {
		background-color: rgba(0,255,0, 1);
	}

	50% {	
		background-color: rgba(0,255,0, 0.33);
	}

	100% {
		background-color: rgba(0,255,0, 1);
	}
}

And then run uglifyCSS, the % symbol will be omitted from the output on 0 (probably because you are assuming that all 0's are 0 and the percentage is superfluous - which in this case it is not, because it is acting as a keyword and not a value), causing Chrome to fail to see it as a valid state, and the animation will "crash."

Is this fixable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions