More to the point, this isn't actually possible to implement. 1. To know you are a grid item, you need the style of the parent (display:grid) and the element itself (display != none, position:fixed but the grid is 3d transformed, ...). 2. To compute that style you need the selectors to have already been matched, 3. Therefore you can't possibly have a general :grid-item pseudo-selector since it causes a cycle. (I'm therefore closing this issue since its use case has been resolved and the originally proposed solution is not something we can actually implement) -- GitHub Notification of comment by FremyCompany Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4097#issuecomment-512177301 using your GitHub accountReceived on Wednesday, 17 July 2019 09:27:26 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC