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 :nth-col() and :nth-last-col() #5

Open
facelessuser opened this issue Dec 9, 2018 · 1 comment
Open

Selectors :nth-col() and :nth-last-col() #5

facelessuser opened this issue Dec 9, 2018 · 1 comment
Labels
C: css-level-4 CSS level 4 selectors. T: feature Feature.

Comments

@facelessuser
Copy link
Owner

facelessuser commented Dec 9, 2018

I don't know if these will make it into version 1.0 or not. There are no real implementations of this available. Some things seem to still be in flux, such as its renaming recently.

In parent || child is parent always compared against col and child against td? What happens if specify something else: p || span?

Same question applies to :nth-col(), is the implied target td:nth-col() if you do something like .class:nth-col()?

There are a number of questions that I have which will need to be understood before this is implemented. There is also a bit of complexity involved here.

  • child must be verified to meet cell requirement and selector requirements.
  • parent must meet column requirement and selector requirements.
  • We would most likely:
    • verify that child is a td
    • verify location in row
    • crawl up and verify whether there are col tags in table header
    • capture appropriate column span considerations
    • determine td column and span based on captured info
    • calculate nth position and whether the td fits within the relation.
@facelessuser facelessuser added T: feature Feature. selectors C: css-level-4 CSS level 4 selectors. labels Dec 30, 2018
@facelessuser
Copy link
Owner Author

facelessuser commented Jan 4, 2019

Combinator || has been moved to a separate issue as it is specifically an "at-risk" feature. We still need better understanding to implement :nth-col and :nth-last-col, but this breaks up the tasks into more manageable pieces.

@facelessuser facelessuser changed the title Combination || and selectors :nth-col() :nth-last-col() Selectors :nth-col() and :nth-last-col() Jan 4, 2019
@gir-bot gir-bot removed the selectors label Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: css-level-4 CSS level 4 selectors. T: feature Feature.
Projects
None yet
Development

No branches or pull requests

2 participants