You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may happen that you render your app as a custom WebComponent and use Shadow DOM (attach your styles in Shadow DOM for isolation purposes).
Printing using react-to-print from the inside of such custom WebComponent results in styles (ones stored in Shadow DOM) missing.
It would be great to traverse styles from the contentRef up to the document using getRootNode() (polyfill may be needed) instead of simple selecting styles on the document level.
The text was updated successfully, but these errors were encountered:
nikita-kliushnikov-idt
changed the title
Printing from inside of the custom WebComponent with shadow DOM attached missing styles
Printing from inside of the custom WebComponent with Shadow DOM attached missing Shadow DOM stored styles
Dec 6, 2024
It may happen that you render your app as a custom WebComponent and use Shadow DOM (attach your styles in Shadow DOM for isolation purposes).
Printing using
react-to-print
from the inside of such custom WebComponent results in styles (ones stored in Shadow DOM) missing.It would be great to traverse styles from the
contentRef
up to the document using getRootNode() (polyfill may be needed) instead of simple selecting styles on the document level.The text was updated successfully, but these errors were encountered: