-
-
Notifications
You must be signed in to change notification settings - Fork 962
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
Document postcss-flexbugs-fixes in declaration-block-no-redundant-longhand-properties #3144
Comments
@AlexWayfer Thanks for issue, i think we can add option and/or look in browserslist config to avoid this problem. If you don't want support IE10-11 rule works as expected. |
Yes, I'm adding |
I believe the rule is behaving as expected. According to the specification, that CSS need not be written longhand, and the rule is correctly stating that. In effect, writing out these declarations is a hack to avoid IE's shoddy implementation of flexbox. I think this could be avoided with e.g. |
But may be.
Or work-around. "Hack" is something unregular, offending.
Maybe. But can the |
I agree with @CAYdenberg. The philosophy of stylelint is to help authors write the nicest code possible because, in this day and age, there is a lot of tooling to help transform this nice code into not so nice code that works around browser issues. This is why we have all the In this instance, I recommend using postcss-flexbugs-fixes to transform your nicely authored code into something that is compatible with IE11. This is very much the happy path here. However, you can, as @CAYdenberg suggested, make use of the I suggest we add a link to postcss-flexbugs-fixes in the |
declaration-block-no-redundant-longhand-properties
for flex
with IE 11
A dangerous behavior (a bug, I guess, or false positive):
declaration-block-no-redundant-longhand-properties
triggers forflex
, whereflex-basis
iscalc()
, which doesn't work correctly in IE 10–11.declaration-block-no-redundant-longhand-properties
e.g.
e.g.
8.4.0
CLI with
yarn run stylelint --config .stylelintrc path/to/file.scss
"No. It's reproducable with regular CSS.
No warnings to be flagged.
The following warnings were flagged:
4:2 ✖ Expected shorthand property "flex" declaration-block-no-redundant-longhand-properties
The text was updated successfully, but these errors were encountered: