make input field visible inside hidden div

Hello I'm trying to make an input field visible which is inside <div style="display:none"> like this.

<div style="display:none">
   <input type="text" value="xyz" [add some attribute to force this input field to be visible or something]>
</div>

Currently, it is not possible with CSS to make child elements visible if a parent element has display: none. If the :has() selector, which behaves as a parent selector, is supported by browsers you'll have that ability.

Today the only way I can think to do what you are asking would require JavaScript.