Fix declaration-block-no-duplicate-properties
autofix for !important
#6523
Labels
status: ready to implement
is ready to be worked on by someone
type: bug
a problem with a feature or rule
What steps are needed to reproduce the bug?
declaration-block-no-duplicate-properties
rulestylelint --fix
against a file like this:The css fixed by stylelint becomes:
The fix is incorrect because before fixing the css the effective value for display would be
flex
and after the fix it isinline-flex
.What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
stylelint file.scss --fix
Which version of Stylelint are you using?
13.12.0
What did you expect to happen?
The expected file after auto fix should be:
If the case is difficult to handle the issue should not be auto-fixed.
What actually happened?
The issue was auto-fixed and the file after the fix became:
Does the bug relate to non-standard syntax?
No response
Proposal to fix the bug
!important
.!important
is present.The text was updated successfully, but these errors were encountered: