peterbe/premailer — pull request #13 by heston (2011-12-23 01:17:08+00:00)
Title: Change CSS merge order to match W3C spec

Per the W3C CSS spec (http://www.w3.org/TR/CSS2/cascade.html#specificity), inline styles always take precedence over other style selectors. However, Premailer currently gives precedence to embedded and external selectors. When Premailer merges embedded and external styles with existing inline ones, the inline styles should take precedence.

This commit simply reverses the order of the merge to achieve this behavior.