aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/tdewolff/minify/css/table.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/tdewolff/minify/css/table.go')
-rw-r--r--vendor/github.com/tdewolff/minify/css/table.go28
1 files changed, 20 insertions, 8 deletions
diff --git a/vendor/github.com/tdewolff/minify/css/table.go b/vendor/github.com/tdewolff/minify/css/table.go
index 331b314..1e9d0b9 100644
--- a/vendor/github.com/tdewolff/minify/css/table.go
+++ b/vendor/github.com/tdewolff/minify/css/table.go
@@ -2,14 +2,26 @@ package css
import "github.com/tdewolff/parse/css"
-var requiredDimension = map[string]bool{
- "s": true,
- "ms": true,
- "dpi": true,
- "dpcm": true,
- "dppx": true,
- "hz": true,
- "khz": true,
+var optionalZeroDimension = map[string]bool{
+ "px": true,
+ "mm": true,
+ "q": true,
+ "cm": true,
+ "in": true,
+ "pt": true,
+ "pc": true,
+ "ch": true,
+ "em": true,
+ "ex": true,
+ "rem": true,
+ "vh": true,
+ "vw": true,
+ "vmin": true,
+ "vmax": true,
+ "deg": true,
+ "grad": true,
+ "rad": true,
+ "turn": true,
}
// Uses http://www.w3.org/TR/2010/PR-css3-color-20101028/ for colors