We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Specify percentage or number notation for alpha-values.
Warns about a potential problem
There are two ways to set alpha notation.
Number:
.test { color: rgb(0 0 0 / 0.5); opacity: 1; }
Percentage:
.test { color: rgb(0 0 0 / 50%); opacity: 100%; }
I think it would be good to have a rule to check this.
{ rules: { 'alpha-value-notation': ['error', 'percentage'], }, }
The text was updated successfully, but these errors were encountered:
Same question as #76: is there a functional difference between the two syntaxes?
Sorry, something went wrong.
No difference, just code style.
@stylistic/eslint-plugin-css
As noted on #76, we aren't accepting stylistic rules into the plugin. You can always create your own plugin with these rules if you so desire.
No branches or pull requests
Rule details
Specify percentage or number notation for alpha-values.
What type of rule is this?
Warns about a potential problem
Example code
There are two ways to set alpha notation.
Number:
Percentage:
I think it would be good to have a rule to check this.
Participation
The text was updated successfully, but these errors were encountered: