Adrian Roselli on Nostr: #CSS help requested… I want to dump the JS that sets a class to style a column that ...
#CSS help requested…
I want to dump the JS that sets a class to style a column that has been sorted in a table.
So I have this selector, which leans on ARIA and uses `:has()`:
```
colgroup:has(+ thead th[aria-sort]:nth-child(1)) col:nth-child(1)
```
I can repeat that for every column for as many columns as I have in the table.
Am I missing a selector that would allow me to match those? One of those nifty emergent Turing selectors that breaks my brain?
Ref: https://cdpn.io/aardrian/debug/gOJJRQP/a40f961c323a0e56cd9b55b9d3e3f734
I want to dump the JS that sets a class to style a column that has been sorted in a table.
So I have this selector, which leans on ARIA and uses `:has()`:
```
colgroup:has(+ thead th[aria-sort]:nth-child(1)) col:nth-child(1)
```
I can repeat that for every column for as many columns as I have in the table.
Am I missing a selector that would allow me to match those? One of those nifty emergent Turing selectors that breaks my brain?
Ref: https://cdpn.io/aardrian/debug/gOJJRQP/a40f961c323a0e56cd9b55b9d3e3f734