I've started using the new HTML hidden attribute directly in my code rather than using CSS. You could try that and remove this.

Just progressBar.hidden = false to show it and progressBar.hidden = true to hide it.  And in the HTML just <progress hidden value=""...>