postcss-reduce-initial
Advanced tools
Comparing version
{ | ||
"-webkit-line-clamp": "none", | ||
"accent-color": "auto", | ||
"align-content": "normal", | ||
"align-items": "normal", | ||
"align-self": "auto", | ||
"align-tracks": "normal", | ||
"animation-delay": "0s", | ||
@@ -13,2 +16,3 @@ "animation-direction": "normal", | ||
"appearance": "auto", | ||
"aspect-ratio": "auto", | ||
"azimuth": "center", | ||
@@ -69,2 +73,3 @@ "backdrop-filter": "none", | ||
"clip-path": "none", | ||
"color-scheme": "normal", | ||
"column-count": "auto", | ||
@@ -80,2 +85,3 @@ "column-gap": "normal", | ||
"counter-reset": "none", | ||
"counter-set": "none", | ||
"cursor": "auto", | ||
@@ -108,2 +114,3 @@ "direction": "ltr", | ||
"font-weight": "normal", | ||
"forced-color-adjust": "auto", | ||
"grid-auto-columns": "auto", | ||
@@ -124,3 +131,2 @@ "grid-auto-flow": "row", | ||
"hyphens": "manual", | ||
"image-orientation": "0deg", | ||
"image-rendering": "auto", | ||
@@ -143,2 +149,3 @@ "image-resolution": "1dppx", | ||
"justify-self": "auto", | ||
"justify-tracks": "normal", | ||
"left": "auto", | ||
@@ -149,2 +156,3 @@ "letter-spacing": "normal", | ||
"line-height": "normal", | ||
"line-height-step": "0", | ||
"list-style-image": "none", | ||
@@ -162,2 +170,3 @@ "list-style-type": "disc", | ||
"margin-top": "0", | ||
"margin-trim": "none", | ||
"mask-border-mode": "alpha", | ||
@@ -171,3 +180,6 @@ "mask-border-outset": "0", | ||
"mask-position": "center", | ||
"mask-repeat": "repeat", | ||
"mask-size": "auto", | ||
"masonry-auto-flow": "pack", | ||
"math-style": "normal", | ||
"max-block-size": "0", | ||
@@ -197,4 +209,10 @@ "max-height": "none", | ||
"overflow-block": "auto", | ||
"overflow-clip-margin": "0px", | ||
"overflow-inline": "auto", | ||
"overflow-wrap": "normal", | ||
"overscroll-behavior": "auto", | ||
"overscroll-behavior-block": "auto", | ||
"overscroll-behavior-inline": "auto", | ||
"overscroll-behavior-x": "auto", | ||
"overscroll-behavior-y": "auto", | ||
"padding-block": "0", | ||
@@ -222,5 +240,5 @@ "padding-block-end": "0", | ||
"row-gap": "normal", | ||
"ruby-position": "over", | ||
"scale": "none", | ||
"scrollbar-color": "auto", | ||
"scrollbar-gutter": "auto", | ||
"scrollbar-width": "auto", | ||
@@ -256,2 +274,4 @@ "scroll-behavior": "auto", | ||
"scroll-snap-type": "none", | ||
"scroll-snap-type-x": "none", | ||
"scroll-snap-type-y": "none", | ||
"shape-image-threshold": "0.0", | ||
@@ -267,2 +287,3 @@ "shape-margin": "0", | ||
"text-decoration-style": "solid", | ||
"text-decoration-thickness": "auto", | ||
"text-emphasis-style": "none", | ||
@@ -276,2 +297,3 @@ "text-indent": "0", | ||
"text-transform": "none", | ||
"text-underline-offset": "auto", | ||
"text-underline-position": "auto", | ||
@@ -288,2 +310,3 @@ "top": "auto", | ||
"unicode-bidi": "normal", | ||
"user-select": "auto", | ||
"white-space": "normal", | ||
@@ -290,0 +313,0 @@ "widows": "2", |
@@ -20,13 +20,14 @@ { | ||
"font-synthesis": "weight style", | ||
"image-orientation": "from-image", | ||
"mask-clip": "border-box", | ||
"mask-mode": "match-source", | ||
"mask-origin": "border-box", | ||
"mask-repeat": "repeat", | ||
"mask-type": "luminance", | ||
"ruby-align": "space-around", | ||
"ruby-merge": "separate", | ||
"ruby-position": "alternate", | ||
"text-decoration-color": "currentcolor", | ||
"text-emphasis-color": "currentcolor", | ||
"text-emphasis-position": "over right", | ||
"transform-box": "border-box", | ||
"transform-box": "view-box", | ||
"transform-origin": "50% 50% 0", | ||
@@ -33,0 +34,0 @@ "vertical-align": "baseline", |
@@ -20,3 +20,3 @@ "use strict"; | ||
const defaultIgnoreProps = ['writing-mode']; | ||
const defaultIgnoreProps = ['writing-mode', 'transform-box']; | ||
@@ -39,5 +39,5 @@ function pluginCreator() { | ||
const lowerCasedProp = decl.prop.toLowerCase(); | ||
const ignoreProp = defaultIgnoreProps.concat(resultOpts.ignore || []); | ||
const ignoreProp = new Set(defaultIgnoreProps.concat(resultOpts.ignore || [])); | ||
if (ignoreProp.includes(lowerCasedProp)) { | ||
if (ignoreProp.has(lowerCasedProp)) { | ||
return; | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "postcss-reduce-initial", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Reduce initial definitions to the actual initial value, where possible.", | ||
@@ -12,6 +12,6 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"acquire": "node ./src/acquire.mjs", | ||
"prebuild": "del-cli dist", | ||
"build": "cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.json --out-dir dist --ignore '**/__tests__/,src/acquire.mjs'", | ||
"prepublish": "yarn build" | ||
"acquire": "node ./src/script/acquire.mjs", | ||
"prebuild": "rimraf dist", | ||
"build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__\"", | ||
"prepare": "yarn build" | ||
}, | ||
@@ -32,3 +32,3 @@ "keywords": [ | ||
"dependencies": { | ||
"browserslist": "^4.16.0", | ||
"browserslist": "^4.16.6", | ||
"caniuse-api": "^3.0.0" | ||
@@ -47,4 +47,3 @@ }, | ||
"postcss": "^8.2.15" | ||
}, | ||
"gitHead": "28c247175032fa03f04911cde56ad82d74d211cc" | ||
} | ||
} |
388
6.59%15935
-11.48%6
-14.29%Updated