Details/summary polyfill: Set closed details visibility to hidden to make text nodes invisible (although still take up space)

Fixes #6166
It is where it is supposed to be. I'm flagging why I have both details and * and not just * .