[selectors] Split out concepts of relative and scoped selectors, as they can be independently invoked.