display: flexif we have a browser without gap support for flexbox?
roothas child nodes
[a, b, c], and you have other nodes
e, then calling
a.replaceWith(a, d, e)results in
roothaving the children
[d, e, b, c], not
[a, d, e, b, c], as I would expect