What is Nostr?
Adrian Roselli /
npub10ee…6keq
2024-06-28 18:23:20

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
Author Public Key
npub10ee2ncgkjq5epjclj9e7f0tardj6smsyyrxe06p02sxjs22pxcyse46keq