axr / specification

This is where we work on the specification for AXR
spec.axrproject.org
13 stars 0 forks source link

absolute selector chain and the descendant combinator #75

Closed Mouvedia closed 11 years ago

Mouvedia commented 12 years ago

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)
Mouvedia commented 11 years ago

Grouping covers this edge case adequately.