Skip to content

fix: rgba parsing not handling negative alpha values#89

Open
chodorowicz wants to merge 1 commit intoQix-:masterfrom
chodorowicz:support-negative-scientific-rgba
Open

fix: rgba parsing not handling negative alpha values#89
chodorowicz wants to merge 1 commit intoQix-:masterfrom
chodorowicz:support-negative-scientific-rgba

Conversation

@chodorowicz
Copy link

This recent PR https://github.com/Qix-/color-string/pull/78 added support for scientific notation of numbers in rgba() regex, but it missed the fact that values with negative exponents like 1E-7 are also valid.

In this demo there are several examples how negative exponents work and are valid in browsers exponents in rgba values

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.

1 participant