invalidate CSSOM cache in DocRewriteObserver

This commit is contained in:
tophf 2017-05-05 18:02:40 +03:00
parent d3d3a1f9b5
commit 6f478cbc57

View File

@ -273,6 +273,7 @@ function initDocRewriteObserver() {
}
ROOT = document.documentElement;
for (const el of styleElements.values()) {
el.textContent += ' '; // invalidate CSSOM cache
addStyleElement(document.importNode(el, true));
}
};