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

fix: support for more than one digit after . for hsl colors in parseToRgb #657

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

safareli
Copy link

@safareli safareli commented Nov 27, 2024

both S and L parts are <percentage> values see

The <percentage> data type consists of a <number> followed by the percentage sign (%). see

The syntax of <number> extends the syntax of <integer>. A fractional value is represented by a . followed by one or more decimal digits, and may be appended to an integer see

current regex only allowed for. 0 or 1 digit after .

…oRgb

> both S and L parts are <percentage>  values see 
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl#s


> The <percentage> data type consists of a <number> followed by the percentage sign (%). 
https://developer.mozilla.org/en-US/docs/Web/CSS/percentage


>The syntax of <number> extends the syntax of <integer>. A fractional value is represented by a . followed by one or more decimal digits, and may be appended to an integer
https://developer.mozilla.org/en-US/docs/Web/CSS/number
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