The <details>
HTML5 element is used to provide a simple show/hide functionality.
While this feature works well on-screen, it poses an issue when printing as any closed <details>
elements disappear in the printed version.
I attempted to fix this with the following code:
@media print {
details { display:block !important }
}
Unfortunately, this solution did not work as expected.
This results in a poor user experience for those trying to print the content. Has anyone found a way to solve this problem for printing?
Thank you