I am trying to apply zebra striping in a table with some hidden rows. These hidden rows are marked with either of 2 classes.
#tableId tbody tr:not(.class1):not(.class2):nth-child(odd) {
background-color: white;
}
This rule gives me striping, but in the table section with hidden rows, it is not striped correctly. It seems that the "not" selection is not working correctly. Any idea why?
I found many ideas to solve it with scripting, but it would be so much cleaner if it was possible with a single css rule.