Skip to content

Commit

Permalink
Expand documentation of declaration-block-no-redundant-longhand-prope… (
Browse files Browse the repository at this point in the history
  • Loading branch information
CAYdenberg authored and ntwb committed Feb 13, 2018
1 parent 247036f commit 1eb07c9
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -60,6 +60,10 @@ This rule complains when the following shorthand properties can be used:
- `text-emphasis`
- `mask`

**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 violation.

This comment has been minimized.

Copy link
@Mouvedia

Mouvedia Feb 14, 2021

Contributor

You should add a warning for grid as well.
see postcss/autoprefixer#1023

ignoreShorthands: ["/flex-/", "grid"]

Flexbox-related properties can be ignored using `ignoreShorthands: ["/flex-/"]` (see below).

## Options

### `true`
Expand Down

0 comments on commit 1eb07c9

Please sign in to comment.