Follow

Aaaaaaaargh.

I forgot you can't just hide table rows with `display: none` when you also use `tr:nth-child(:odd)` for table striping.

@ayo can you somehow filter children before applying nth-child? Like "of children with data-foo=bar, take nth" ?

@Wolf480pl Ugh. The `display: none` is determined by a combination of parent classes and <tr> classes. Reimplementing that CSS logic inside :nth-child() is going to be very ugly. Alternative is to not use that CSS logic and instead alter the class of every affected <tr>.

Why did I even want to do this client-side.

Sign in to participate in the conversation
lonely.town

A lonely little town in the wider world of the fediverse.