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

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

Merged
merged 1 commit into from
Aug 3, 2022
Merged

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

merged 1 commit into from
Aug 3, 2022

Conversation

louietan
Copy link
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
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.

None yet

2 participants