check allowed contexts in selector snippet