How to access main DOM from Shadow DOM?

How can HTML in the Shadow DOM access HTML elements in the main DOM?

E.g. if a button in the Shadow DOM needs to toggle the visibility of text in the main DOM?

cc @mateusz

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.