Device-Bugs icon indicating copy to clipboard operation
Device-Bugs copied to clipboard

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

Open zachleat opened this issue 8 years ago • 1 comments

: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

zachleat avatar May 10 '16 18:05 zachleat

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

MattDiMu avatar Jun 09 '16 11:06 MattDiMu