-
Notifications
You must be signed in to change notification settings - Fork 111
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
Implement "gap" property (part of the spec for flex layout) #66
Comments
As far as I can tell, this would require implementing full or partial support for CSS-Grid layout |
Ah interesting. Well, we can tackle this as part of #28 then :) |
I would advocate for supporting only "shorthand" version (at least initially), e.g. just "gap". My understanding that
|
PR implementing it in yoga here: facebook/yoga#1116. They also have generated tests for it. |
What problem does this solve or what need does it fill?
The issue is as old as flex box: spacing between elements
What solution would you like?
Implement the spec: https://developer.mozilla.org/en-US/docs/Web/CSS/gap#specifications
Or at least a reasonable subset, note that
calc
should be probably outside of the scopeThus, I think, implementing just explicit values should be good enough (at least as a start)
from spec:
What alternative(s) have you considered?
Work around is simple: margins + negative padding, but super cumbersome
The text was updated successfully, but these errors were encountered: