Replaced selector list in :not() with two compound selectors (FF 78 regression)

This commit is contained in:
squidfunk
2021-12-13 17:00:38 +01:00
parent dee2ba51bc
commit dea3ad86ce
4 changed files with 7 additions and 7 deletions

View File

@@ -174,8 +174,8 @@ export function mountCodeBlock(
/* Handle code annotations */
const container = el.closest([
":not(td.code) > .highlight", /* Code blocks */
".highlighttable" /* Code blocks with line numbers */
":not(td):not(.code) > .highlight",
".highlighttable"
].join(", "))
if (container instanceof HTMLElement) {
const list = findCandidateList(container)