[html] Fix annotations not clipping properly