Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preserve empty custom properties (#1351)
* fix(postcss-minify-params): reduce custom property value to 1 space instead of 0 Fix #1130 minify-params handles whitespace inside at rules separately from normalize-whitespace. I also realizes it uses a kind of hack, as it parses the atrule parameters with postcss-value-parser, so the resulting AST does not make a lot of sense. * fix(postcss-normalize-whitespace): turn empty custom properties into 1 space * fix(postcss-discard-empty): preserve empty custom properties Fix #1350 Empty custom properties are valid according to the latest spec updates and various CSS tricks use them. * test(postcss-discard-empty): test for property with space value
- Loading branch information
1 parent
7ee06f7
commit 4ed3967
Showing
6 changed files
with
47 additions
and
5 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
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
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