-
Notifications
You must be signed in to change notification settings - Fork 35
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
Fix initial
and auto
value for flex
#54
Conversation
Default value: 0 1 auto
tests: #55 |
Hi, thanks for the PR. Can you add a bit of context on this change? 😬 This says the default is 0 |
Here https://github.com/luisrudge/postcss-flexbugs-fixes/pull/54/files#diff-4346a0d83ae11ca744ad6aed47d5e8fcL4 is all about
|
Ok, I leave default value to 'auto', but also leave 0 if it appears. |
Initial value is not the same as default value. The default value for
Initial values are outside of the control of the plugin because it can work only on present rules, not absent ones, unless someone explicitly writes something like |
@silvenon what about "Safari seems to hate '0%' and the others seems to make do with a nice value when basis is missing" ? Should we normalize |
@iegik thanks! can you add a test for this, please? 🎉 |
breaks bug 4, 8.1.a |
index.js
Outdated
@@ -3,7 +3,7 @@ var bug4 = require('./bugs/bug4'); | |||
var bug6 = require('./bugs/bug6'); | |||
var bug81a = require('./bugs/bug81a'); | |||
|
|||
var doNothingValues = ['none', 'auto', 'content', 'inherit', 'initial', 'unset']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad practice to declarate rule in index.
These checks chould be repeated in each ./bugs/bunny file!
@iegik I see you've renamed the PR to focus on flexbug #8, but the code still seems to do a lot more. May I ask where you're at? It's now a fairly simple problem, which shouldn't affect the other bugs. Let me know if you need a hand ;) |
@axelboc No, this PR is focused to FlexBug #6
The problem now is, that changing default |
I think, that this PR and #56 should be merged as one PR |
This PR to handle the
initial
andauto
value forflex
CSS propertyflex: initial → flex: 0 1 auto
flex: auto → flex: 1 1 auto
#48