Assuming the element on which you are declaring the function isn't @root, how do you match elements from all scopes using an absolute selector chain?
Example:
//this wouldn't select a root element called "target"
sel(@root .. target);
//would something like this be valid?
sel(@root .. target, @root:is(target));
//or maybe we need a new reference object
sel(@document .. target);
//alternate
sel(@window .. target);
//should this work?
sel(@root @parent .. target)
Assuming the element on which you are declaring the function isn't
@root
, how do you match elements from all scopes using an absolute selector chain?Example: