Refs #33491 -- Split CSS selected-row highlight selectors.

Combined selectors break the whole rule where :has() is not supported,
for example on Firefox.

Thanks to Marcelo Galigniana for the report.
This commit is contained in:
Carlton Gibson 2022-08-17 13:38:19 +02:00 committed by Carlton Gibson
parent 0aa2f16e63
commit e1056ed5a2
1 changed files with 4 additions and 1 deletions

View File

@ -260,7 +260,10 @@
/* Once the :has() pseudo-class is supported by all browsers, the tr.selected /* Once the :has() pseudo-class is supported by all browsers, the tr.selected
selector and the JS adding the class can be removed. */ selector and the JS adding the class can be removed. */
#changelist table tbody tr.selected, #changelist table tbody tr.selected {
background-color: var(--selected-row);
}
#changelist table tbody tr:has(input[type=checkbox]:checked) { #changelist table tbody tr:has(input[type=checkbox]:checked) {
background-color: var(--selected-row); background-color: var(--selected-row);
} }