Skip to content

Word.isColor doesn't support RGBA hex colors #32

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

Closed
1 of 4 tasks
jwilsson opened this issue Jul 20, 2017 · 1 comment
Closed
1 of 4 tasks

Word.isColor doesn't support RGBA hex colors #32

jwilsson opened this issue Jul 20, 2017 · 1 comment

Comments

@jwilsson
Copy link
Collaborator

jwilsson commented Jul 20, 2017

  • Node Version: 6.11.1
  • NPM Version: 5.3.0
  • postcss-values-parser Version: 1.2.2

This issue is regarding a problem with:

  • Standard CSS
  • LESS
  • SCSS
  • SASS

For example:

color: #000000ff;

Expected Behavior

Word.isColor should be true.

Actual Behavior

Word.isColor is false.

How can we reproduce the behavior?

Run the parser on a RGBA hex color, for example the one above.

This should be a simple extension of the current isColor regex, to allow for colors with 8 chars. I'd be happy to do it.

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

No branches or pull requests

2 participants