From 491fcef08b49c58cbe616774f9915e961d06cef4 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 9 Dec 2017 19:37:31 +0300 Subject: [PATCH] also move style element when it's the first child see #295 --- content/apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apply.js b/content/apply.js index 0047780b..8d1ee11c 100644 --- a/content/apply.js +++ b/content/apply.js @@ -456,7 +456,7 @@ prevExpected = next; } else if ( next === el || - next === el.previousElementSibling || + next === el.previousElementSibling && next || moveAfter(el, next || prevExpected)) { prevExpected = el; break;