Appearance
Short Answer: Yes, Googlebot can flatten Light DOM and Shadow DOM.
Googlebot supports web components. When Googlebot renders a page, it flattens the shadow DOM and light DOM content. (source)