Full page editing in the shadow DOM

With allowRenderStylesFromHead enabled, the feature renders the <style> elements found in the data's <head> into the root the editable lives in: document.head in the light DOM, or the shadow root itself when the editor is attached to one. Loading new data must replace those styles, and destroying the editor must take them away.

The two data variants set different declarations for h2 and p, so a <style> left over from the previously loaded document shows up in the content, not only in the report. Their body rules are there to show the asymmetry between the roots: inside a shadow root such a rule matches nothing, while in the light DOM it repaints the whole page, this header included.

What to check: