/** * Resolve the root a node's styles should live in. * * Returns the node's `ShadowRoot` when it (or an ancestor) is shadowed, the * owning `Document` otherwise. A `