Fullscreen mode in the shadow DOM

The editor is built in the root picked below. In the shadow modes the editor stylesheets are forwarded into that root and disabled in the main document, so the fullscreen layer is styled only if it lands in a root that adopted them – which is exactly what this test watches.

Where the layer is expected to mount, by combination:

In every combination the layer must be fully styled, the toolbar and the menu bar must work from inside it, and leaving fullscreen must put the editable back where it came from. A closed root cannot be resolved through host.shadowRoot, so reach it from the console through the editor: editor.editing.view.getDomRoot().getRootNode().