RESOLVED FIXED 190089
[css-grid] gap is not honored with collapsed tracks (due to auto-fit) and align-items center or end
https://bugs.webkit.org/show_bug.cgi?id=190089
Summary [css-grid] gap is not honored with collapsed tracks (due to auto-fit) and ali...
Oriol Brufau
Reported 2018-09-28 14:11:39 PDT
Gutters adjacent to collapsed tracks decrease the end position of grid areas in the previous track. Therefore, when the grid items are aligned to the center or end, they are shifted incorrectly. Examples: https://codepen.io/anon/pen/qMeQMQ, https://codepen.io/mrego/pen/XVvNom Works on Firefox. Has been fixed in Blink: https://bugs.chromium.org/p/chromium/issues/detail?id=801881
Attachments
Patch (5.82 KB, patch)
2018-09-28 14:31 PDT, Oriol Brufau
no flags
Archive of layout-test-results from ews116 for mac-sierra (1.22 MB, application/zip)
2018-09-28 15:47 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews102 for mac-sierra (2.22 MB, application/zip)
2018-09-28 15:48 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews106 for mac-sierra-wk2 (2.03 MB, application/zip)
2018-09-28 16:00 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews205 for win-future (13.20 MB, application/zip)
2018-09-28 17:12 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (1.31 MB, application/zip)
2018-09-28 19:48 PDT, EWS Watchlist
no flags
Patch (6.04 KB, patch)
2018-09-29 03:41 PDT, Oriol Brufau
no flags
Oriol Brufau
Comment 1 2018-09-28 14:31:05 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 2 2018-09-28 15:47:28 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 3 2018-09-28 15:47:29 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 4 2018-09-28 15:47:59 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 5 2018-09-28 15:48:01 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 6 2018-09-28 15:59:59 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 7 2018-09-28 16:00:01 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 8 2018-09-28 17:12:01 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 9 2018-09-28 17:12:13 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 10 2018-09-28 19:48:30 PDT Comment hidden (obsolete)
EWS Watchlist
Comment 11 2018-09-28 19:48:31 PDT Comment hidden (obsolete)
Oriol Brufau
Comment 12 2018-09-29 03:41:47 PDT
Oriol Brufau
Comment 13 2018-09-29 03:46:32 PDT
I found some code that used isEmptyAutoRepeatTrack without seemingly checking hasAutoRepeatEmptyTracks beforehand, so I thought it wasn't necessary in WebKit. I just didn't look properly. I have fixed the patch.
Manuel Rego Casasnovas
Comment 14 2018-09-29 04:45:52 PDT
Comment on attachment 351177 [details] Patch Thanks for porting this. LGTM.
WebKit Commit Bot
Comment 15 2018-09-29 05:11:24 PDT
Comment on attachment 351177 [details] Patch Clearing flags on attachment: 351177 Committed r236643: <https://trac.webkit.org/changeset/236643>
WebKit Commit Bot
Comment 16 2018-09-29 05:11:26 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 17 2018-09-29 05:12:33 PDT
Note You need to log in before you can comment on or make changes to this bug.