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

Fixes #6166
If you think you need to add this comment here, perhaps yopu should add a comment to the code that points to this comment?