Workaround for safari max/min-width bug