Fix declaration-block-no-shorthand-property-overrides
false negatives for border
after border-image
#7586
Labels
declaration-block-no-shorthand-property-overrides
false negatives for border
after border-image
#7586
What minimal example or steps are needed to reproduce the bug?
What minimal configuration is needed to reproduce the bug?
How did you run Stylelint?
Demo
Also, you can see the ignored
border-image
in CodePen.Which Stylelint-related dependencies are you using?
What did you expect to happen?
The following problem should be reported:
What actually happened?
No problems to be reported.
Do you have a proposal to fix the bug?
Instead of adding
border-image
to theborder
Map inreference.longhandSubPropertiesOfShorthandProperties
, custom logic should be implemented inrules/declaration-block-no-shorthand-property-overrides/index.mjs
becauseborder-image
is just reset byborder
, not a longhand property. See also the CSS spec.Background: #7585 (comment)
The text was updated successfully, but these errors were encountered: