1 # declaration-block-no-shorthand-property-overrides
3 Disallow shorthand properties that override related longhand properties.
6 a { background-repeat: repeat; background: green; }
8 * This overrides the longhand property before it */
11 In almost every case, this is just an authorial oversight. For more about this behavior, see [MDN's documentation of shorthand properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties).
17 The following patterns are considered violations:
28 transition-property: opacity;
29 transition: opacity 1s linear;
35 -webkit-transition-property: opacity;
36 -webkit-transition: opacity 1s linear;
42 border-top-width: 1px;
45 border: 2px solid blue;
49 The following patterns are *not* considered violations:
52 a { padding: 10px; padding-left: 20px; }
56 a { transition-property: opacity; } a { transition: opacity 1s linear; }
60 a { transition-property: opacity; -webkit-transition: opacity 1s linear; }