invalidate CSSOM cache in DocRewriteObserver
This commit is contained in:
parent
d3d3a1f9b5
commit
6f478cbc57
1
apply.js
1
apply.js
|
@ -273,6 +273,7 @@ function initDocRewriteObserver() {
|
||||||
}
|
}
|
||||||
ROOT = document.documentElement;
|
ROOT = document.documentElement;
|
||||||
for (const el of styleElements.values()) {
|
for (const el of styleElements.values()) {
|
||||||
|
el.textContent += ' '; // invalidate CSSOM cache
|
||||||
addStyleElement(document.importNode(el, true));
|
addStyleElement(document.importNode(el, true));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user