Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[selectors-4] "Grid-Structural Selectors" needs clarity as to whether it applies to tables only, or also to CSS Grid (display: grid) #6590

Closed
MaximSagan opened this issue Sep 10, 2021 · 3 comments

Comments

@MaximSagan
Copy link

MaximSagan commented Sep 10, 2021

https://drafts.csswg.org/selectors-4/#table-pseudos

Use of the term "grid" suggests we may be dealing with CSS Grid, but all examples deal with <table> and its children.
If these selectors do apply to CSS Grid, the spec should probably complement the :nth-col pseudo-selector with a corresponding :nth-row pseudo-selector (see #1943).

Additionally, if these selectors apply to CSS grid, as the content and structure of CSS Grid rows/columns are defined by the CSS rather than by markup (which is the case for <table>), there are cyclic issues that may need consideration.

@Loirooriol
Copy link
Contributor

Column membership is determined based on the semantics of the document language only: whether and how the elements are presented is not considered

makes it clear that CSS styles (including grid layout) are not considered, only the HTML (or whatever the document language) matters.

@Loirooriol Loirooriol added the selectors-4 Current Work label Sep 12, 2021
@tabatkins
Copy link
Member

Yup, @Loirooriol got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@tabatkins @Loirooriol @MaximSagan and others