Skip to content

Commit

Permalink
Document shorthand-property-no-redundant-values extended description (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Oct 13, 2022
1 parent 1fd5a15 commit c6b03ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rules/shorthand-property-no-redundant-values/README.md
Expand Up @@ -9,7 +9,11 @@ a { margin: 1px 1px 1px 1px; }
* These values */
```

This rule alerts you when you use redundant values in the following shorthand properties:
You can use [shorthand properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties) to set multiple values at once. For example, you can use the `margin` property to set the `margin-top`, `margin-right`, `margin-bottom`, and `margin-left` properties at once.

For some shorthand properties, e.g. those related to the [edges of a box](https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#edges_of_a_box), you can safely omitted some values.

This rule checks the following shorthand properties:

- `margin`
- `padding`
Expand Down

0 comments on commit c6b03ba

Please sign in to comment.