Improves longhand-into-shorthand merging.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 21 Apr 2017 09:04:10 +0000 (11:04 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 21 Apr 2017 13:47:05 +0000 (15:47 +0200)
commitee7ae8a6033132a52e16a304820abbe225ceed9e
tree45497ca3c1ffa5e368c5c297df5ee38b0593acd1
parent03223df9f7bcb6b2ee7364b84b3b39b0e745d0a6
Improves longhand-into-shorthand merging.

Why:

* In case of properties which are both longhands and shorthands at the
  same time, e.g. `border-style`, the merging was dropped prematurely;
* also inverts order of property optimizations, doing merging first
  followed by overriding, which results in more optimization
  opportunities.
History.md
lib/optimizer/level-2/compactable.js
lib/optimizer/level-2/properties/merge-into-shorthands.js
lib/optimizer/level-2/properties/optimize.js
test/optimizer/level-2/properties/merge-into-shorthands-test.js