Applying filter on filtered subset results with pseudoelements in CSS

36 Views Asked by At

Greetings I have this fiddle: https://jsfiddle.net/partizanos/a5pf136a/.

tr:not(.Row--toIgnore):nth-child(even){
    background-color: #000;
}

Inside I have a table and CSS rules aiming to color the rows.

I would like to have the following effect:

  • WhiteColor Row1 --odd===========Row1 --odd WhiteColor
  • BlackColor Row2 --even==========Row2 --even BlackColor
  • WhiteColor Row3 --odd--->Remove= REMOVED
  • BlackColor Row4 --==============Row4 --ODD WhiteColor

I don't want to solve it using Javascript

Essentially I ask if we can apply the :nth-child pseudoElement function in :not pseudoElement results.

Thank you in advance.

0

There are 0 best solutions below