For the animated preview canvas, className is undefined, which leads to class="canvas undefined".