It is, unfortunately; I wrote the test first, but then it turned out that jsdom does not support CSS margins, which the functionality is based on. So although it works, the test would still fail. I left it in hoping that jsdom will one day support margins.