borderFunction rebuild for stackable styles