This is a PostCSS plugin that merges the properties of CSS rules with identical selectors. In practice, it's a terrible idea to ever use this, because of the cascading nature of, well, cascading style sheets...
mikedamage/postcss-merge-dupes
Combine duplicate instances of the same selector and deduplicate their properties
JavaScript