postcss-reduce-initial 4.0.0-rc.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -72,7 +72,7 @@ examples for your environment.
72
72
 
73
73
  ## Contributors
74
74
 
75
- See [CONTRIBUTORS.md](https://github.com/ben-eb/cssnano/blob/master/CONTRIBUTORS.md).
75
+ See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
76
76
 
77
77
 
78
78
  ## License
@@ -1,34 +1,6 @@
1
1
  {
2
- "-ms-overflow-style": "auto",
3
- "-moz-binding": "none",
4
- "-moz-border-bottom-colors": "none",
5
- "-moz-border-left-colors": "none",
6
- "-moz-border-right-colors": "none",
7
- "-moz-border-top-colors": "none",
8
- "-moz-force-broken-image-icon": "0",
9
- "-moz-image-region": "auto",
10
- "-moz-orient": "inline",
11
- "-moz-outline-radius-bottomleft": "0",
12
- "-moz-outline-radius-bottomright": "0",
13
- "-moz-outline-radius-topleft": "0",
14
- "-moz-outline-radius-topright": "0",
15
- "-moz-text-blink": "none",
16
- "-moz-user-focus": "none",
17
- "-moz-user-input": "auto",
18
- "-webkit-border-before-style": "none",
19
- "-webkit-border-before-width": "medium",
20
- "-webkit-box-reflect": "none",
21
- "-webkit-mask-attachment": "scroll",
22
- "-webkit-mask-clip": "border",
23
- "-webkit-mask-image": "none",
24
- "-webkit-mask-position": "0% 0%",
25
- "-webkit-mask-position-x": "0%",
26
- "-webkit-mask-position-y": "0%",
27
- "-webkit-mask-repeat": "repeat",
28
- "-webkit-mask-repeat-x": "repeat",
29
- "-webkit-mask-repeat-y": "repeat",
30
- "-webkit-tap-highlight-color": "black",
31
- "-webkit-text-stroke-width": "0",
2
+ "align-content": "normal",
3
+ "align-items": "normal",
32
4
  "align-self": "auto",
33
5
  "animation-delay": "0s",
34
6
  "animation-direction": "normal",
@@ -37,6 +9,7 @@
37
9
  "animation-iteration-count": "1",
38
10
  "animation-name": "none",
39
11
  "animation-timing-function": "ease",
12
+ "appearance": "auto",
40
13
  "azimuth": "center",
41
14
  "backdrop-filter": "none",
42
15
  "background-attachment": "scroll",
@@ -46,6 +19,7 @@
46
19
  "background-position-x": "left",
47
20
  "background-position-y": "top",
48
21
  "background-repeat": "repeat",
22
+ "block-overflow": "clip",
49
23
  "block-size": "auto",
50
24
  "border-block-end-style": "none",
51
25
  "border-block-end-width": "medium",
@@ -55,7 +29,7 @@
55
29
  "border-bottom-right-radius": "0",
56
30
  "border-bottom-style": "none",
57
31
  "border-bottom-width": "medium",
58
- "border-image-outset": "0s",
32
+ "border-image-outset": "0",
59
33
  "border-image-slice": "100%",
60
34
  "border-image-source": "none",
61
35
  "border-image-width": "1",
@@ -74,14 +48,7 @@
74
48
  "border-top-width": "medium",
75
49
  "bottom": "auto",
76
50
  "box-decoration-break": "slice",
77
- "box-direction": "normal",
78
- "box-flex": "0",
79
- "box-flex-group": "1",
80
- "box-lines": "single",
81
- "box-ordinal-group": "1",
82
- "box-pack": "start",
83
51
  "box-shadow": "none",
84
- "box-suppress": "show",
85
52
  "break-after": "auto",
86
53
  "break-before": "auto",
87
54
  "break-inside": "auto",
@@ -96,13 +63,12 @@
96
63
  "column-rule-width": "medium",
97
64
  "column-span": "none",
98
65
  "column-width": "auto",
66
+ "contain": "none",
99
67
  "content": "normal",
100
68
  "counter-increment": "none",
101
69
  "counter-reset": "none",
102
70
  "cursor": "auto",
103
71
  "direction": "ltr",
104
- "display-inside": "auto",
105
- "display-list": "none",
106
72
  "empty-cells": "show",
107
73
  "filter": "none",
108
74
  "flex-basis": "auto",
@@ -114,6 +80,7 @@
114
80
  "font-feature-settings": "normal",
115
81
  "font-kerning": "auto",
116
82
  "font-language-override": "normal",
83
+ "font-optical-sizing": "auto",
117
84
  "font-variation-settings": "normal",
118
85
  "font-size": "medium",
119
86
  "font-size-adjust": "none",
@@ -139,6 +106,7 @@
139
106
  "grid-template-areas": "none",
140
107
  "grid-template-columns": "none",
141
108
  "grid-template-rows": "none",
109
+ "hanging-punctuation": "none",
142
110
  "height": "auto",
143
111
  "hyphens": "manual",
144
112
  "image-orientation": "0deg",
@@ -149,10 +117,15 @@
149
117
  "initial-letter-align": "auto",
150
118
  "inline-size": "auto",
151
119
  "isolation": "auto",
120
+ "justify-content": "normal",
121
+ "justify-items": "legacy",
122
+ "justify-self": "auto",
152
123
  "left": "auto",
153
124
  "letter-spacing": "normal",
154
125
  "line-break": "auto",
126
+ "line-clamp": "none",
155
127
  "line-height": "normal",
128
+ "line-height-step": "0",
156
129
  "list-style-image": "none",
157
130
  "list-style-type": "disc",
158
131
  "margin-block-end": "0",
@@ -163,15 +136,19 @@
163
136
  "margin-left": "0",
164
137
  "margin-right": "0",
165
138
  "margin-top": "0",
166
- "marker-offset": "auto",
139
+ "mask-border-mode": "alpha",
140
+ "mask-border-outset": "0",
141
+ "mask-border-slice": "0",
142
+ "mask-border-source": "none",
143
+ "mask-border-width": "auto",
167
144
  "mask-composite": "add",
168
145
  "mask-image": "none",
169
- "mask-position": "0% 0%",
170
- "mask-repeat": "repeat",
146
+ "mask-position": "center",
171
147
  "mask-size": "auto",
172
148
  "max-block-size": "0",
173
149
  "max-height": "none",
174
150
  "max-inline-size": "0",
151
+ "max-lines": "none",
175
152
  "max-width": "none",
176
153
  "min-block-size": "0",
177
154
  "min-height": "0",
@@ -186,6 +163,7 @@
186
163
  "offset-inline-start": "auto",
187
164
  "offset-distance": "0",
188
165
  "offset-path": "none",
166
+ "offset-position": "auto",
189
167
  "offset-rotate": "auto",
190
168
  "opacity": "1.0",
191
169
  "order": "0",
@@ -193,6 +171,9 @@
193
171
  "outline-offset": "0",
194
172
  "outline-style": "none",
195
173
  "outline-width": "medium",
174
+ "overflow-anchor": "auto",
175
+ "overflow-block": "auto",
176
+ "overflow-inline": "auto",
196
177
  "overflow-wrap": "normal",
197
178
  "padding-block-end": "0",
198
179
  "padding-block-start": "0",
@@ -205,19 +186,22 @@
205
186
  "page-break-after": "auto",
206
187
  "page-break-before": "auto",
207
188
  "page-break-inside": "auto",
189
+ "paint-order": "normal",
208
190
  "perspective": "none",
191
+ "place-content": "normal",
209
192
  "pointer-events": "auto",
210
193
  "position": "static",
211
194
  "resize": "none",
212
195
  "right": "auto",
196
+ "rotate": "none",
197
+ "row-gap": "normal",
213
198
  "ruby-position": "over",
199
+ "scale": "none",
214
200
  "scroll-behavior": "auto",
215
201
  "scroll-snap-coordinate": "none",
216
202
  "scroll-snap-points-x": "none",
217
203
  "scroll-snap-points-y": "none",
218
204
  "scroll-snap-type": "none",
219
- "scroll-snap-type-x": "none",
220
- "scroll-snap-type-y": "none",
221
205
  "shape-image-threshold": "0.0",
222
206
  "shape-margin": "0",
223
207
  "shape-outside": "none",
@@ -226,9 +210,11 @@
226
210
  "text-align-last": "auto",
227
211
  "text-combine-upright": "none",
228
212
  "text-decoration-line": "none",
213
+ "text-decoration-skip-ink": "auto",
229
214
  "text-decoration-style": "solid",
230
215
  "text-emphasis-style": "none",
231
216
  "text-indent": "0",
217
+ "text-justify": "auto",
232
218
  "text-orientation": "mixed",
233
219
  "text-overflow": "clip",
234
220
  "text-rendering": "auto",
@@ -243,8 +229,8 @@
243
229
  "transition-duration": "0s",
244
230
  "transition-property": "all",
245
231
  "transition-timing-function": "ease",
232
+ "translate": "none",
246
233
  "unicode-bidi": "normal",
247
- "user-select": "auto",
248
234
  "white-space": "normal",
249
235
  "widows": "2",
250
236
  "width": "auto",
@@ -1,11 +1,4 @@
1
1
  {
2
- "-moz-float-edge": "content-box",
3
- "-moz-stack-sizing": "stretch-to-fit",
4
- "-moz-user-modify": "read-only",
5
- "-webkit-border-before-color": "currentcolor",
6
- "-webkit-mask-composite": "source-over",
7
- "-webkit-text-fill-color": "currentcolor",
8
- "-webkit-text-stroke-color": "currentcolor",
9
2
  "background-clip": "border-box",
10
3
  "background-color": "transparent",
11
4
  "background-origin": "padding-box",
@@ -21,14 +14,12 @@
21
14
  "border-top-color": "currentcolor",
22
15
  "box-sizing": "content-box",
23
16
  "column-rule-color": "currentcolor",
24
- "display-outside": "inline-level",
25
17
  "font-synthesis": "weight style",
26
- "justify-content": "flex-start",
27
18
  "mask-clip": "border-box",
28
19
  "mask-mode": "match-source",
29
20
  "mask-origin": "border-box",
21
+ "mask-repeat": "no-repeat",
30
22
  "mask-type": "luminance",
31
- "overflow-clip-box": "padding-box",
32
23
  "ruby-align": "space-around",
33
24
  "ruby-merge": "separate",
34
25
  "text-decoration-color": "currentcolor",
package/dist/index.js CHANGED
@@ -26,28 +26,27 @@ var _toInitial2 = _interopRequireDefault(_toInitial);
26
26
 
27
27
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
28
28
 
29
- var initial = 'initial';
29
+ const initial = 'initial';
30
30
 
31
- exports.default = (0, _postcss.plugin)('postcss-reduce-initial', function () {
32
- return function (css, result) {
33
- var resultOpts = result.opts || {};
34
- var browsers = (0, _browserslist2.default)(null, {
31
+ exports.default = (0, _postcss.plugin)('postcss-reduce-initial', () => {
32
+ return (css, result) => {
33
+ const resultOpts = result.opts || {};
34
+ const browsers = (0, _browserslist2.default)(null, {
35
35
  stats: resultOpts.stats,
36
36
  path: __dirname,
37
37
  env: resultOpts.env
38
38
  });
39
- var initialSupport = (0, _caniuseApi.isSupported)('css-initial-value', browsers);
40
- css.walkDecls(function (decl) {
41
- var prop = decl.prop;
42
-
43
- if (initialSupport && (0, _has2.default)(_toInitial2.default, prop) && decl.value === _toInitial2.default[prop]) {
39
+ const initialSupport = (0, _caniuseApi.isSupported)('css-initial-value', browsers);
40
+ css.walkDecls(decl => {
41
+ const lowerCasedProp = decl.prop.toLowerCase();
42
+ if (initialSupport && (0, _has2.default)(_toInitial2.default, lowerCasedProp) && decl.value === _toInitial2.default[lowerCasedProp]) {
44
43
  decl.value = initial;
45
44
  return;
46
45
  }
47
- if (decl.value !== initial || !_fromInitial2.default[prop]) {
46
+ if (decl.value.toLowerCase() !== initial || !_fromInitial2.default[lowerCasedProp]) {
48
47
  return;
49
48
  }
50
- decl.value = _fromInitial2.default[prop];
49
+ decl.value = _fromInitial2.default[lowerCasedProp];
51
50
  });
52
51
  };
53
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-reduce-initial",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.2",
4
4
  "description": "Reduce initial definitions to the actual initial value, where possible.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -20,29 +20,28 @@
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
22
  "babel-cli": "^6.0.0",
23
- "cross-env": "^3.0.0",
24
- "got": "^6.0.0",
25
- "html2plaintext": "^1.0.0",
26
- "is-html": "^1.0.0",
23
+ "cross-env": "^5.0.0",
24
+ "got": "^8.0.0",
25
+ "html2plaintext": "^2.0.0",
27
26
  "write-file": "^1.0.0"
28
27
  },
29
- "homepage": "https://github.com/ben-eb/cssnano",
28
+ "homepage": "https://github.com/cssnano/cssnano",
30
29
  "author": {
31
30
  "name": "Ben Briggs",
32
31
  "email": "beneb.info@gmail.com",
33
32
  "url": "http://beneb.info"
34
33
  },
35
- "repository": "ben-eb/cssnano",
34
+ "repository": "cssnano/cssnano",
36
35
  "dependencies": {
37
- "browserslist": "^2.0.0",
38
- "caniuse-api": "^2.0.0",
36
+ "browserslist": "^4.0.0",
37
+ "caniuse-api": "^3.0.0",
39
38
  "has": "^1.0.0",
40
- "postcss": "^6.0.0"
39
+ "postcss": "^7.0.0"
41
40
  },
42
41
  "bugs": {
43
- "url": "https://github.com/ben-eb/cssnano/issues"
42
+ "url": "https://github.com/cssnano/cssnano/issues"
44
43
  },
45
44
  "engines": {
46
- "node": ">=4"
45
+ "node": ">=6.9.0"
47
46
  }
48
47
  }