Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(postcss-merge-longhand): don't explode custom properties (#1356)
Fix #1354 Fix #675 - postcss-merge-longhand first 'explodes' longhand declarations to the smallest unit (for example border-width -> border-top-width). If the declaration value contains a custom property, it is not possible to safely explode width/size/color, as the custom property might be equivalent to multiple space-separated values. - this plugin lowercases property names as a side-effect of exploding, so to preserve the old behaviour we lowercase the property that cannot be exploded - remove incorrect tests and add tests for new behaviour
- Loading branch information
1 parent
1e01938
commit 2c69934
Showing
2 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters