Is there a way to hide a text node keeping element's background and sizing without changing its color, using nested tags, or overlapping it with a pseudo-element with CSS only?
button {
color: transparent;
}
<button>text node</button>
Above is what I want to achieve but I don't want to do this by changing the color. I don't want to overlap it with something of the same background like a pseudo-element. I don't want to use nested tags like a span
to change its visibility too. Any ideas?