-
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
Confusing times #57
Comments
More to the point, here is how I think the existing transform for flexbug #4 should work. The bug refers specifically to a /* IGNORE */
flex: 1; /* no flex-basis */
flex: 2 0; /* no flex-basis */
flex: 1 0 50px; /* valid unit */
flex: 0 0 0%; /* valid unit */
flex: 10px; /* valid unit */
flex: 2em 3; /* valid unit */
flex: 0% 2 0; /* valid unit */
flex: 1 1 1; /* invalid */
flex: 1% 1 1%; /* invalid */
/* FIX */
flex: 1 1 0; /* => flex: 1 1 0%; */
flex: 2 0 0px; /* => flex: 2 0 0%; */
flex: 0px 1 1; /* => flex: 0% 1 1; */
|
I agree that's a better solution to bug4. Can you send a PR? |
This is going to take a bit of planning. I see two big issues at the moment:
I think a big rewrite of bugs 4 and 6 is in order and I'd be happy to have a go at it. I'm just not sure how to do this smoothly so that stuff don't break or conflict with other work. The way I see it, the smoothest path might be as follows:
Any thoughts? |
Closing this for now. Too much work, too little time :'( |
The state of this plugin is really confusing.
How is outputting
flex: 1 1
solving flexbug #4? Am I missing something?I don't understand why 3.3.0 breaks latest Chrome #45 led to the re-revert of Revert Autoremoval of 0% Basis #43, when the issue seems to be talking about cases where the
flex-basis
value is placed first in theflex
shorthand -- e.g.flex: 100%
,flex: 100% 2
. Seems to me like a pretty specific case that could be dealt with separately.I've seen mentioned that Safari doesn't support
0%
, but isn't this flexbug #11, which can only be fixed with some more advanced, case-by-case refactoring?In my opinion, this plugin should not worry about outputting code that breaks some non-trivial cases (e.g.
min/max-width
,flex-wrap
, etc.) Ifflex: 1 1 0%
breaks something, it means the developer should not have written a simpleflex: 1
in the first place. How about leaving the transforms as dumb as possible? If I do useflex: 1
for a basic flex layout, I'd really like to getflex: 1 1 0%
-- no questions asked.The text was updated successfully, but these errors were encountered: