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 false negatives for CSS variables in alpha-value-notation #5130

Merged
merged 1 commit into from Feb 11, 2021

Conversation

jeddy3
Copy link
Member

@jeddy3 jeddy3 commented Feb 6, 2021

Which issue, if any, is this issue related to?

Closes #5129

Is there anything in the PR that needs further explanation?

I ran into this bug while preparing a new release of stylelint-scales.

As mentioned in #5129, the best we can do is narrow down the possibilities of what a particular node could represent. This pull request uses in the slash within modern colour function notation as a fallback to find the <alpha-value>.

@jeddy3 jeddy3 mentioned this pull request Feb 6, 2021
6 tasks
Copy link
Member

@mattxwang mattxwang left a comment

Choose a reason for hiding this comment

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

LGTM! The /* comment */ test case is a good one!

Copy link
Member

@m-allanson m-allanson left a comment

Choose a reason for hiding this comment

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

👍

@jeddy3 jeddy3 merged commit 57940b6 into master Feb 11, 2021
@jeddy3 jeddy3 deleted the issue-5129 branch February 11, 2021 10:32
@jeddy3
Copy link
Member Author

jeddy3 commented Feb 11, 2021

  • Fixed: alpha-value-notation false negatives for CSS Variables (#5130).

This was referenced Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix false negatives for CSS Variables in alpha-value-notation
3 participants