:not(thead) td does not work as expected

`table :not(thead) td`
also selects tds in thead
https://jsfiddle.net/zh8dx97b/4/

Not that specificity will not be incresed with this fix as * has zero specificity:
`:not(thead) > * > td`

Maybe `table {` could be dropped completely, since 'thead' and `td` only exist in table?
This commit is contained in:
Tobias Buschor 2021-07-19 07:10:38 +02:00 committed by GitHub
parent 87bf626400
commit d74f2dcc62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ table {
}
}
:not(thead) td {
:not(thead) > * > td {
--font-size: 0.875em;
}
}