Closed tborg closed 1 week ago
Comparing tborg:tborg-fix-merge
(72154dd) with master
(143cd63)
✅ 6
untouched benchmarks
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.22%. Comparing base (
143cd63
) to head (72154dd
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi @Stranger6667 — very glad you were able to release 0.14.2 on Monday!
Here's another patch for you — please let me know if this seems reasonable to you and whether there's anything I can do to make it better.
Hi @tborg
Thank you so much for fixing this :) Absolutely reasonable! I am going to make a new patch release soon
When two selectors would set a property for an element, if one of those selectors is important then it should take precedence over non-important selector. If they are both important, or neither are important, then specificity is enough.
I observed this issue when comparing generated emails against the output of the node
inline-css
library. Here's a simple playground input/output that demonstrates the problem:Note that if you reverse the order of the rule declarations, you get the correct behavior.