Re: [csswg-drafts] [css-grid] grid-item pseudo-class (#4097)

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 account

Received on Wednesday, 17 July 2019 09:27:26 UTC