Re: [csswg-drafts] [css-grid] Decorative grid-cell pseudo-elements (#499)

Right, that's why I suggest they don't make grid areas occupied by default.  I think it should be decoupled from being a `::grid-area` pseudo though, with a `grid-fill` property or some such, to give the author the flexibility of opting in/out from that for _any_ item.

One way of achieving that might be to do two separate placement runs. So first we run the whole [grid item placement](https://drafts.csswg.org/css-grid/#placement) algo with the `grid-fill:fill` items to place those. Then you run it again with a new (initially empty) matrix of "occupied" bits with the `grid-fill:none` items. So it's basically two independent grids as far as placement is concerned.  I'd like to hear why fantasai explicitly excluded auto-placed pseudos first though...

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


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

Received on Sunday, 31 October 2021 23:21:10 UTC