From 691631ec53f14a90ebdc87c852e6c5d403362579 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 13 Feb 2019 10:26:41 +0800 Subject: [PATCH] Add a fixme --- content/apply.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/apply.js b/content/apply.js index 2c0baa18..b70447b1 100644 --- a/content/apply.js +++ b/content/apply.js @@ -349,6 +349,8 @@ const APPLY = (() => { const docId = document.documentElement.id ? '#' + document.documentElement.id : ''; document.documentElement.classList.add(className); const el = styleInjector.createStyle('transition-patch'); + // FIXME: this will trigger docRootObserver and cause a resort. We should + // move this function into style-injector. document.documentElement.appendChild(el); setStyleContent(el, ` ${docId}.${CSS.escape(className)}:root * {