Unexpected duplicate "background"

Must-share information (formatted with Markdown):

  • *SonarQube 9.9.1
  • CI system used: GItLab
  • Scanner command used when applicable (private details masked)
    Default GItLab yaml task
  • Languages of the repository:Typescript + Vue3

my code background: url('@/usage/assets/images/1.png') no-repeat center center;
error message Unexpected duplicate "background"


background was already declared on line 140 in your screenshot.

Per the rule description:

CSS allows duplicate property names but only the last instance of a duplicated name determines the actual value that will be used for it.

That’s why an issue is raised.



1 Like