Re: [csswg-drafts] [css-selectors][css-flexbox] Pseudo-classes for flex-wrapped and rows elements (#5150)

Unfortunately, since the position of an element in a wrapping flexbox depends on layout, which depends on CSS properties, these pseudo-classes would be circular; [we can't create pseudo-classes that depend on layout](https://wiki.csswg.org/faq#selectors-that-depend-on-layout).

The :nth-col() pseudo is based purely on markup structure; it has no dependence whatsoever on layout or CSS. (So if you, say, use `display:none` on a cell, thus shifting which column other cells belong to in the CSS table model, they'll still match `:nth-col()` according to the original column they'd be in without CSS.)

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

Received on Tuesday, 2 June 2020 22:52:43 UTC