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

Support for :nth-child(An+B) where A is negative #148

Open
kpldvnpne opened this issue Jan 2, 2021 · 0 comments · May be fixed by #158
Open

Support for :nth-child(An+B) where A is negative #148

kpldvnpne opened this issue Jan 2, 2021 · 0 comments · May be fixed by #158

Comments

@kpldvnpne
Copy link

kpldvnpne commented Jan 2, 2021

I have a need to select the first two children. According to this MDN doc, I should be able to do something like this with CSS selectors:

:nth-child(-n+2)

I tried this selector with pup, but it behaves like there is no - in front of n. That is, it behaved the same as :nth-child(n+2).

Is this syntax not supported?

@mdrokz mdrokz linked a pull request Aug 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant