Device-Bugs
Device-Bugs copied to clipboard
Android 4.1 and 4.2 don’t parse :nth-child(n)
: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
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