Re: [csswg-drafts] [css-grid-3] Adding auto placement override capibilities (#8655)

> wouldnt the number of columns and rows be determined by the `grid-auto-placement` value?

Yes, the final number of tracks depends on placement. But the number of explicit tracks doesn't, and can still be useful. Just like `grid-column: auto / -1` places in the last explicit column.

> Isn't that what I wrote under Hard way?

Yes sorry, I missed that sentence.

> Not sure about that one, what exactly do you mean? Can you provide an example?

```html
<div style="display: grid; grid-auto-placement-area: grid(i) / grid(i);">
  <div></div>
  <div style="grid-area: 1 / 1"></div>
</div>
```

The 1st item has `i = 1` and is placed at `1 / 1`. The 2nd item has a definite position and is also placed at `1 / 1`, so they overlap.

The current spec avoids this kind of things by 1st placing items with definite positions, and then the others filling the gaps, either sparsely or densely.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8655#issuecomment-1488954934 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 29 March 2023 16:50:24 UTC