code: def parse_pseudo_dir(self, sel, m, has_selector):
          
  
          value = ct.SEL_DIR_LTR if util.lower(m.group('dir')) == 'ltr' else ct.SEL_DIR_RTL
          sel.flags |= value
          has_selector = True
          return has_selector
docs: Parse pseudo direction.