W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

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

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 Jul 2019 09:27:25 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-512177301-1563355643-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC