w3c / w3c/csswg-drafts

[css-grid] 'auto' keyword should work with name grid lines/areas

Open
#3,243 0 comments 1 reaction 1 assignee View on GitHub

@fantasai is already working on this.

Since Oct 23, 2018.

css-grid-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Consider the sample grid:

grid-template-columns: 1fr repeat(4, [icon-start] auto [icon-end] 1fr);
grid-template-rows: [icon-start] auto [icon-end];

With an image:

img { grid-area: icon; }

And the markup:

<img src=icon1.png>
<img src=icon2.png>
<img src=icon3.png>
<img src=icon4.png>

All four images will be placed into the first 'icon' grid area, and require specific style rules to target the other grid areas. It would be useful to be able to use the auto placement algorithm but target specific named grid lines/areas, e.g:

img { grid-area: icon auto; }

and have each image be placed in the first unoccupied 'icon' grid area.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.