Skip to content

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

@jwilsson

Description

@jwilsson
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions