Gets the open shadow root or the closed shadow root hosted by the specified element. If the shadow root isn't attached to the element, it will return null.
Note: In Firefox, the equivalent property is element.openOrClosedShadowRoot. This read-only property represents the shadow root hosted by the element, regardless of whether its mode is open or closed.
Use Element.attachShadow() to add a shadow root to an element.