Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(core): support RGB alpha notation #9699

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

Merged

Conversation

lekhmanrus
Copy link
Contributor

Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions

PR Checklist

What is the current behavior?

It parses rgb(1 2 3 / 4) as { f: 1, s: 255, t: 255, a: 255 }

What is the new behavior?

Supports rgb[a](R G B[ / A]) notation.

@cla-bot
Copy link

cla-bot bot commented Dec 14, 2021

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Ruslan Lekhman.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

NathanWalker
NathanWalker previously approved these changes Dec 14, 2021
Copy link
Contributor

@NathanWalker NathanWalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work 👏

@NathanWalker NathanWalker added this to the 8.2 milestone Dec 14, 2021
Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions
@lekhmanrus
Copy link
Contributor Author

@NathanWalker thanks 😀

@NathanWalker NathanWalker changed the base branch from master to release/8.2.0 January 14, 2022 05:36
@NathanWalker NathanWalker merged commit 2337d29 into NativeScript:release/8.2.0 Jan 14, 2022
NathanWalker added a commit that referenced this pull request Feb 14, 2022
Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions

Co-authored-by: Nathan Walker <[email protected]>
NathanWalker added a commit that referenced this pull request Feb 18, 2022
Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions

Co-authored-by: Nathan Walker <[email protected]>
NathanWalker added a commit that referenced this pull request Mar 1, 2022
Functional notation: rgb[a](R G B[ / A])
CSS Colors Level 4 adds support for space-separated values in the functional notation.
See https://www.w3.org/TR/css-color-4/#rgb-functions

Co-authored-by: Nathan Walker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants