functional in safari+chrome