Skip to content

Fix shorthand-property-no-redundant-values false negatives for additional radius #8428

@jeddy3

Description

@jeddy3

What minimal example or steps are needed to reproduce the bug?

a {
  border-radius: 1px 1px 1px 1px / 2px 2px 2px 2px;
}

I encountered this while looking into #8412. I couldn't find it coming up before, I guess because additional radii are rarely used.

What minimal configuration is needed to reproduce the bug?

{
  "rules": {
     "shorthand-property-no-redundant-values": true
   }
}

How did you run Stylelint?

Demo.

Which Stylelint-related dependencies are you using?

{
  "stylelint": "latest",
  "stylelint-config-standard": "latest"
}

What did you expect to happen?

Both sets of redundant values in the radii to be reported.

What actually happened?

No problems reported.

Do you have a proposal to fix the bug?

Account for additional radius.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: wipis being worked on by someone

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions