If we use content distribution (with "space-around" and that kind of values) and we align one item with "center" and/or "end". The item uses the space added by the content distribution, but it shouldn't use it. For gaps this is working as expected. This is a port of this Blink patch: https://codereview.chromium.org/1880393005/ The patch has been developed on top of patch for bug #156597, which adds m_offsetBetweenColumns|Rows properties.
Created attachment 276468 [details] Patch
Created attachment 276624 [details] Patch Rebased patch
Comment on attachment 276624 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=276624&action=review > Source/WebCore/rendering/RenderGrid.cpp:1914 > + } Being just two and taking into account that you have a comment just above I'll just do endOfRow -= gutters + m_offset > Source/WebCore/rendering/RenderGrid.cpp:1948 > + } Ditto.
Created attachment 277603 [details] Patch
Comment on attachment 277603 [details] Patch Thanks for the review. Applied suggested changes.
Comment on attachment 277603 [details] Patch Clearing flags on attachment: 277603 Committed r200181: <http://trac.webkit.org/changeset/200181>
All reviewed patches have been landed. Closing bug.