FWIW, I’ve done something similar using a space character and a monospaced font. That eliminates the need to set the element or the font color to 0% opacity and also prevents “visible” characters in the source of the page.