Minimal stand-in for “many #main > section siblings + cut/paste reorder + one shadow edit”.
Editor looks fine; preview/deploy can hide the wrong section when grouper shards ops into separate tags.
isOpOnElNotPresentInLightDOM → save skips findParent() for cutPaste/paste → ~one tag per destination XPath.MAIN#main → few tags → stack order preserved → nth-based hide usually matches editor.nth-of-type comes from tag apply order vs selectors frozen at save.#main shows six labeled sections in order
A Hero → B Practice → C Structured → D Recovery → E Support → F Reviews.
Each section paints its live :nth-of-type under the title.#main.chat-widget, select the
inner text “SHADOW EDIT TARGET”, change the text to SHADOW TOUCHED
(or any style). This is the only edit that must touch shadow DOM.<<Groups data>>.
With the shadow edit you should see many content tags (roughly one per distinct section path),
not a single MAIN#main bucket. Note cutPaste rows whose hide uses
#main > section:nth-of-type(N):not([vwo-element-id]).MAIN#main. Preview should match editor.HEAD group). Groups ≈ parent-lifted body groups + HEAD
(often ~4 on richer pages; on this fixture expect MAIN + HEAD, and chat only if still edited).
If Groups stay huge after deleting the shadow edit, confirm variation meta no longer has
isOpOnElNotPresentInLightDOM and that no other >> selector remains on the stack.
… MAIN#main > SECTION:first-child + SECTION + …), many entries.findParent →
… MAIN#main, few entries, stack order inside one tag.cutSourceShortSelectorPath (frozen nth), not from the grouper key.Live nth labels update as you reorder in the editor. They are for humans — deploy still freezes selectors at save.
Simulates deploy as separate tags: a late “paste insert” tag runs before an earlier
“hide section:nth-of-type(4)” tag. Same frozen selector, different DOM.
Press a button. Uses a cloned #main, does not touch the live editor target above.