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

Android 4.1 and 4.2 don’t parse :nth-child(n) #69

Open
zachleat opened this issue May 10, 2016 · 1 comment
Open

Android 4.1 and 4.2 don’t parse :nth-child(n) #69

zachleat opened this issue May 10, 2016 · 1 comment

Comments

@zachleat
Copy link

zachleat commented May 10, 2016

:nth-child(n) works on Android 2.2
:nth-child(n) works on Android 2.3
:nth-child(n) fails on Android 4 (Kindle Fire HD 8.9)
:nth-child(n) fails on Android 4.1
:nth-child(n) fails on Android 4.2
:nth-child(n) fails on Android 4.3 (Kindle Fire HDX 7)
:nth-child(n) works on Android 4.3 (Galaxy Note 3)
:nth-child(n) works on Android 4.4

Workaround:

:nth-child(1n) works on Android 4.1
:nth-child(1n) works on Android 4.2

Test case:

https://output.jsbin.com/besefig

@MattDiMu
Copy link

MattDiMu commented Jun 9, 2016

In case somebody doesn't want to think about it and uses postcss already:
https://github.com/MattDiMu/postcss-nth-child-fix

...or use the corresponding postcss-fixes plugin pack, which tries to automatically fix such weird behaviors like that (just added it):
https://github.com/MattDiMu/postcss-fixes

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

No branches or pull requests

2 participants