Skip to content

Fixes incorrectly appending '%'s to rgba of numbers#1228

Merged
jakubpawlowicz merged 1 commit into
clean-css:masterfrom
louietan:master
Aug 3, 2022
Merged

Fixes incorrectly appending '%'s to rgba of numbers#1228
jakubpawlowicz merged 1 commit into
clean-css:masterfrom
louietan:master

Conversation

@louietan

Copy link
Copy Markdown
Contributor

The Alpha value in rgba can be a percentage, like 50% which is the same as .5.

Given input:

a{color:rgba(255,255,255,50%)}

The expected output should be:

a{color:rgba(255,255,255,50%)}

While the actual output is:

a{color:rgba(255,255%,255%,50%)}

This PR fixes this bug.

@jakubpawlowicz jakubpawlowicz merged commit 73ef43f into clean-css:master Aug 3, 2022
@jakubpawlowicz

Copy link
Copy Markdown
Collaborator

Thanks @louietan for the fix. Merging it now.

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.

2 participants