Add custom pseudo-class

Add custom :rtl pseudo class to enable descendant selector switches in the templates.