This new code isn't looking at the display property, just domStyles which will never be === "none".