Even if shorthand properties are convenient to use, there are a few edge cases to keep in mind when using them:

Therefore, shorthand properties should be sparsely used.

This rule raises an issue each time a shorthand property is declared and its value contains more than one element.

Noncompliant Code Example

.mybox {
  margin: 10px 5px 15px; /* Noncompliant */
  border-color: green; /* Compliant: value is a single element */
}

Compliant Solution

.mybox {
  margin-top: 10px;
  margin-right: 5px;
  margin-bottom: 15px;
  margin-left: 5px;
  border-color: green;
}

See

Shorthand Properties

[[shorthandProperties]]
Property Shorthand For