better handling of multiple-declaration selectors (with taking into account the priority)