Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand documentation of declaration-block-no-redundant-longhand-prope… #3165

Merged
merged 1 commit into from
Feb 13, 2018

Conversation

CAYdenberg
Copy link
Contributor

@CAYdenberg CAYdenberg commented Feb 12, 2018

…rties to include discussion of flexbox browser bugs

Which issue, if any, is this issue related to?

#3144

Is there anything in the PR that needs further explanation?

Documentation change only.

…rties to include discussion of flexbox browser bugs
@ntwb ntwb merged commit 1eb07c9 into master Feb 13, 2018
@ntwb ntwb deleted the issue-3144 branch February 13, 2018 00:46
@@ -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.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be just as "flexbox", without Regexp, doesn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation is a bit confusing as "padding" is given as an example, but the option is ignoreShorthands, and the shorthand properties are flex-basis, flex-grow and flex-shrink. I think I'd have to look at the code to figure out what the actual behaviour is. In any case despite being a regex, this seems more straightforward.

@AlexWayfer
Copy link

There is no information about postcss-flexbugs-fixes 😔

@ntwb
Copy link
Member

ntwb commented Feb 13, 2018

@AlexWayfer Can you create a pull request to add that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants