{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2610","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2610/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2610/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2610/events","html_url":"https://github.com/w3c/csswg-drafts/issues/2610","id":317426481,"number":2610,"title":"[css-align][css-grid-2] Add new value 'meet' to align-content/justify-content","user":{"login":"MatsPalmgren","id":4010828,"avatar_url":"https://avatars3.githubusercontent.com/u/4010828?v=4","gravatar_id":"","url":"https://api.github.com/users/MatsPalmgren","html_url":"https://github.com/MatsPalmgren","followers_url":"https://api.github.com/users/MatsPalmgren/followers","following_url":"https://api.github.com/users/MatsPalmgren/following{/other_user}","gists_url":"https://api.github.com/users/MatsPalmgren/gists{/gist_id}","starred_url":"https://api.github.com/users/MatsPalmgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatsPalmgren/subscriptions","organizations_url":"https://api.github.com/users/MatsPalmgren/orgs","repos_url":"https://api.github.com/users/MatsPalmgren/repos","events_url":"https://api.github.com/users/MatsPalmgren/events{/privacy}","received_events_url":"https://api.github.com/users/MatsPalmgren/received_events","type":"User","site_admin":false},"labels":[{"id":445362818,"url":"https://api.github.com/repos/w3c/csswg-drafts/labels/css-grid-2","name":"css-grid-2","color":"c5def5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-24T23:10:11Z","updated_at":"2018-05-08T01:31:53Z","closed_at":"2018-05-08T01:31:53Z","author_association":"NONE","body":"Issue #2285 discusses the possibility of allowing the author to re-distribute the track sizes locally in a subgridded axis. In that case, it would be nice to be able distribute them so that the subgrid's grid gap is center-aligned with the corresponding gap in the parent grid when possible.  This is what the proposed `meet` value is for.  For example, using `gap: 40px` in the parent grid (and all rows are `auto`-sized) and `row-gap: 10px` on the subgrid:\r\n![rachel_andrew_subgrid_example-meet-40-to-10-gap](https://user-images.githubusercontent.com/4010828/39216222-144f5662-481b-11e8-8adc-ac4b5549bf55.png)\r\n(I've included our devtools grid overlay on the first subgrid for clarity)\r\n\r\nA few notes on my prototype implementation of this:\r\n - `align-content/justify-content: normal` behaves as `meet` in a subgridded axis\r\n - `align-content/justify-content: meet` behaves as `stretch` in a non-subgridded axis\r\n - if the tracks would overflow the subgrid content area then it is treated as overflowing and fallback alignment occurs instead, the same as content-distribution in a non-subgridded axis would. (This implies that a subgrid gap value that is larger than its parent's triggers fallback alignment (unless the subgrid box has a definite size that makes it not overflow) and that tracks never shrinks in the subgrid.)\r\n - the default fallback alignment for `meet` is the same as  for [`stretch`](https://drafts.csswg.org/css-align/#valdef-align-content-stretch)\r\n - tracks with a fixed track-sizing function are not stretched and may thus cause the adjacent gap to be unaligned (the subgrid's gap value is always honored), gap alignment then snaps back after the next resizable track\r\n\r\nHere's the same example, but with the first row having a `100px` sizing function:\r\n![rachel_andrew_subgrid_example-100px-fixed-row1](https://user-images.githubusercontent.com/4010828/39218436-036b51e8-4825-11e8-9b35-bee91f935eed.png)\r\nNote how the first gap can't be aligned with the parent due to the fixed track size and how the second row grows to align the next gap."},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/387256496","html_url":"https://github.com/w3c/csswg-drafts/issues/2610#issuecomment-387256496","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/2610","id":387256496,"user":{"login":"fantasai","id":725717,"avatar_url":"https://avatars3.githubusercontent.com/u/725717?v=4","gravatar_id":"","url":"https://api.github.com/users/fantasai","html_url":"https://github.com/fantasai","followers_url":"https://api.github.com/users/fantasai/followers","following_url":"https://api.github.com/users/fantasai/following{/other_user}","gists_url":"https://api.github.com/users/fantasai/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasai/subscriptions","organizations_url":"https://api.github.com/users/fantasai/orgs","repos_url":"https://api.github.com/users/fantasai/repos","events_url":"https://api.github.com/users/fantasai/events{/privacy}","received_events_url":"https://api.github.com/users/fantasai/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T01:31:53Z","updated_at":"2018-05-08T01:31:53Z","author_association":"CONTRIBUTOR","body":"Closing out as invalid; please feel free to re-open if it ends up being relevant."}}
{"actor":{"display_login":"fantasai"}}