Skip to content

Commit

Permalink
Update rule README (and sort alphabetically)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Oct 4, 2023
1 parent fe30870 commit 9b09883
Showing 1 changed file with 28 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,54 @@ This rule will only complain if you've used the longhand equivalent of _all_ the

This rule complains when the following shorthand properties can be used:

- `margin`
- `padding`
- `inset`
- `animation`
- `background`
- `font`
- `border`
- `border-top`
- `border-bottom`
- `border-left`
- `border-right`
- `border-width`
- `border-style`
- `border-color`
- `list-style`
- `border-radius`
- `transition`
- `animation`
- `border-block`
- `border-block-end`
- `border-block-start`
- `border-bottom`
- `border-color`
- `border-image`
- `border-inline`
- `border-inline-end`
- `border-inline-start`
- `border-left`
- `border-radius`
- `border-right`
- `border-style`
- `border-top`
- `border-width`
- `column-rule`
- `columns`
- `flex`
- `flex-flow`
- `font`
- `grid`
- `grid-area`
- `grid-column`
- `grid-gap`
- `grid-row`
- `grid-template`
- `inset`
- `inset-block`
- `inset-inline`
- `list-style`
- `margin`
- `margin-block`
- `margin-inline`
- `mask`
- `outline`
- `padding`
- `padding-block`
- `padding-inline`
- `scroll-margin-block`
- `scroll-margin-inline`
- `scroll-padding-block`
- `scroll-padding-inline`
- `text-decoration`
- `text-emphasis`
- `mask`
- `transition`

**Please note** that properties are considered to be redundant if they may be written shorthand according to the specification, **regardless of the behavior of any individual browser**. For example, due to Internet Explorer's implementation of Flexbox, [it may not be possible to use the shorthand property `flex`](https://github.com/philipwalton/flexbugs#flexbug-8), but the longhand form is still considered a problem.

Expand Down

0 comments on commit 9b09883

Please sign in to comment.