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

optimization for nth-child & nth-of-type #1159

Closed
da0ka opened this issue Mar 20, 2021 · 2 comments
Closed

optimization for nth-child & nth-of-type #1159

da0ka opened this issue Mar 20, 2021 · 2 comments

Comments

@da0ka
Copy link

da0ka commented Mar 20, 2021

nth-child(1) -> first-child
nth-of-type(1) -> first-of-type
nth-of-type(even) -> nth-of-type(2n)
nth-child(even) -> nth-child(2n)
nth-of-type(2n+1) -> nth-of-type(odd)
nth-child(2n+1) -> nth-child(odd)

@jakubpawlowicz
Copy link
Collaborator

I think all of them are equally well supported, if so, let's have it 👍

@jakubpawlowicz
Copy link
Collaborator

Due in 5.3 tomorrow.

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

2 participants