Rule details
Disallow shorthand properties that override related longhand properties.
What type of rule is this?
Warns about a potential problem
Example code
a {
padding-left: 10px;
padding: 20px;
}
a {
background-repeat: no-repeat;
background: url(image.png); /* silently resets background-repeat to its initial value */
}
Prior Art
Participation
AI acknowledgment
Additional comments
- Detection would be purely name-based, a shorthand always resets all its longhands regardless of their value, so the rule needs no value parsing, just a map which is available in
@webref/css.
Rule details
Disallow shorthand properties that override related longhand properties.
What type of rule is this?
Warns about a potential problem
Example code
Prior Art
Participation
AI acknowledgment
Additional comments
@webref/css.