Skip to content

Ancestor & descendant

Throughout this catalog, ancestor means *anywhere above* a tag in the DOM tree (its

Throughout this catalog, ancestor means anywhere above a tag in the DOM tree (its parent, grandparent, or higher) and descendant means anywhere below (its child, grandchild, or deeper). Context flows through any depth of intervening markup - wrapper <div>s, layout grids, and styling shells do not break it. So “REQUIRES storesynk-product ancestor” is satisfied whether the tag is a direct child of <storesynk-product> or buried ten <div>s deep inside it. The rules check presence somewhere on the ancestor chain, not direct parentage - except where a rule explicitly says “first child” (the template-clone containers, SSK-107), which is a direct-child requirement.


Imported from the Storesynk skill v0.1.0 (references/structure-rules.md). To change this page, change it there.