also move style element when it's the first child

see #295
This commit is contained in:
tophf 2017-12-09 19:37:31 +03:00
parent ca40eb9481
commit 491fcef08b

View File

@ -456,7 +456,7 @@
prevExpected = next;
} else if (
next === el ||
next === el.previousElementSibling ||
next === el.previousElementSibling && next ||
moveAfter(el, next || prevExpected)) {
prevExpected = el;
break;