postcss-reduce-initial 4.0.2 → 4.0.3

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.
@@ -21,6 +21,8 @@
21
21
  "background-repeat": "repeat",
22
22
  "block-overflow": "clip",
23
23
  "block-size": "auto",
24
+ "border-block-style": "none",
25
+ "border-block-width": "medium",
24
26
  "border-block-end-style": "none",
25
27
  "border-block-end-width": "medium",
26
28
  "border-block-start-style": "none",
@@ -29,10 +31,14 @@
29
31
  "border-bottom-right-radius": "0",
30
32
  "border-bottom-style": "none",
31
33
  "border-bottom-width": "medium",
34
+ "border-end-end-radius": "0",
35
+ "border-end-start-radius": "0",
32
36
  "border-image-outset": "0",
33
37
  "border-image-slice": "100%",
34
38
  "border-image-source": "none",
35
39
  "border-image-width": "1",
40
+ "border-inline-style": "none",
41
+ "border-inline-width": "medium",
36
42
  "border-inline-end-style": "none",
37
43
  "border-inline-end-width": "medium",
38
44
  "border-inline-start-style": "none",
@@ -42,6 +48,8 @@
42
48
  "border-right-style": "none",
43
49
  "border-right-width": "medium",
44
50
  "border-spacing": "0",
51
+ "border-start-end-radius": "0",
52
+ "border-start-start-radius": "0",
45
53
  "border-top-left-radius": "0",
46
54
  "border-top-right-radius": "0",
47
55
  "border-top-style": "none",
@@ -116,6 +124,13 @@
116
124
  "initial-letter": "normal",
117
125
  "initial-letter-align": "auto",
118
126
  "inline-size": "auto",
127
+ "inset": "auto",
128
+ "inset-block": "auto",
129
+ "inset-block-end": "auto",
130
+ "inset-block-start": "auto",
131
+ "inset-inline": "auto",
132
+ "inset-inline-end": "auto",
133
+ "inset-inline-start": "auto",
119
134
  "isolation": "auto",
120
135
  "justify-content": "normal",
121
136
  "justify-items": "legacy",
@@ -125,12 +140,13 @@
125
140
  "line-break": "auto",
126
141
  "line-clamp": "none",
127
142
  "line-height": "normal",
128
- "line-height-step": "0",
129
143
  "list-style-image": "none",
130
144
  "list-style-type": "disc",
145
+ "margin-block": "0",
131
146
  "margin-block-end": "0",
132
147
  "margin-block-start": "0",
133
148
  "margin-bottom": "0",
149
+ "margin-inline": "0",
134
150
  "margin-inline-end": "0",
135
151
  "margin-inline-start": "0",
136
152
  "margin-left": "0",
@@ -157,10 +173,6 @@
157
173
  "mix-blend-mode": "normal",
158
174
  "object-fit": "fill",
159
175
  "offset-anchor": "auto",
160
- "offset-block-end": "auto",
161
- "offset-block-start": "auto",
162
- "offset-inline-end": "auto",
163
- "offset-inline-start": "auto",
164
176
  "offset-distance": "0",
165
177
  "offset-path": "none",
166
178
  "offset-position": "auto",
@@ -175,9 +187,11 @@
175
187
  "overflow-block": "auto",
176
188
  "overflow-inline": "auto",
177
189
  "overflow-wrap": "normal",
190
+ "padding-block": "0",
178
191
  "padding-block-end": "0",
179
192
  "padding-block-start": "0",
180
193
  "padding-bottom": "0",
194
+ "padding-inline": "0",
181
195
  "padding-inline-end": "0",
182
196
  "padding-inline-start": "0",
183
197
  "padding-left": "0",
@@ -197,10 +211,36 @@
197
211
  "row-gap": "normal",
198
212
  "ruby-position": "over",
199
213
  "scale": "none",
214
+ "scrollbar-color": "auto",
215
+ "scrollbar-width": "auto",
200
216
  "scroll-behavior": "auto",
217
+ "scroll-margin": "0",
218
+ "scroll-margin-block": "0",
219
+ "scroll-margin-block-start": "0",
220
+ "scroll-margin-block-end": "0",
221
+ "scroll-margin-bottom": "0",
222
+ "scroll-margin-inline": "0",
223
+ "scroll-margin-inline-start": "0",
224
+ "scroll-margin-inline-end": "0",
225
+ "scroll-margin-left": "0",
226
+ "scroll-margin-right": "0",
227
+ "scroll-margin-top": "0",
228
+ "scroll-padding": "auto",
229
+ "scroll-padding-block": "auto",
230
+ "scroll-padding-block-start": "auto",
231
+ "scroll-padding-block-end": "auto",
232
+ "scroll-padding-bottom": "auto",
233
+ "scroll-padding-inline": "auto",
234
+ "scroll-padding-inline-start": "auto",
235
+ "scroll-padding-inline-end": "auto",
236
+ "scroll-padding-left": "auto",
237
+ "scroll-padding-right": "auto",
238
+ "scroll-padding-top": "auto",
239
+ "scroll-snap-align": "none",
201
240
  "scroll-snap-coordinate": "none",
202
241
  "scroll-snap-points-x": "none",
203
242
  "scroll-snap-points-y": "none",
243
+ "scroll-snap-stop": "normal",
204
244
  "scroll-snap-type": "none",
205
245
  "shape-image-threshold": "0.0",
206
246
  "shape-margin": "0",
@@ -3,10 +3,12 @@
3
3
  "background-color": "transparent",
4
4
  "background-origin": "padding-box",
5
5
  "background-size": "auto auto",
6
+ "border-block-color": "currentcolor",
6
7
  "border-block-end-color": "currentcolor",
7
8
  "border-block-start-color": "currentcolor",
8
9
  "border-bottom-color": "currentcolor",
9
10
  "border-collapse": "separate",
11
+ "border-inline-color": "currentcolor",
10
12
  "border-inline-end-color": "currentcolor",
11
13
  "border-inline-start-color": "currentcolor",
12
14
  "border-left-color": "currentcolor",
@@ -18,7 +20,7 @@
18
20
  "mask-clip": "border-box",
19
21
  "mask-mode": "match-source",
20
22
  "mask-origin": "border-box",
21
- "mask-repeat": "no-repeat",
23
+ "mask-repeat": "repeat",
22
24
  "mask-type": "luminance",
23
25
  "ruby-align": "space-around",
24
26
  "ruby-merge": "separate",
package/dist/index.js CHANGED
@@ -36,16 +36,21 @@ exports.default = (0, _postcss.plugin)('postcss-reduce-initial', () => {
36
36
  path: __dirname,
37
37
  env: resultOpts.env
38
38
  });
39
+
39
40
  const initialSupport = (0, _caniuseApi.isSupported)('css-initial-value', browsers);
41
+
40
42
  css.walkDecls(decl => {
41
43
  const lowerCasedProp = decl.prop.toLowerCase();
42
- if (initialSupport && (0, _has2.default)(_toInitial2.default, lowerCasedProp) && decl.value === _toInitial2.default[lowerCasedProp]) {
44
+
45
+ if (initialSupport && (0, _has2.default)(_toInitial2.default, lowerCasedProp) && decl.value.toLowerCase() === _toInitial2.default[lowerCasedProp]) {
43
46
  decl.value = initial;
44
47
  return;
45
48
  }
49
+
46
50
  if (decl.value.toLowerCase() !== initial || !_fromInitial2.default[lowerCasedProp]) {
47
51
  return;
48
52
  }
53
+
49
54
  decl.value = _fromInitial2.default[lowerCasedProp];
50
55
  });
51
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postcss-reduce-initial",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Reduce initial definitions to the actual initial value, where possible.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
package/CHANGELOG.md DELETED
@@ -1,18 +0,0 @@
1
- # 4.0.0-rc.0
2
-
3
- * Breaking: Drops support for Node 0.12, we now require at least Node 4.
4
- * Breaking: Update PostCSS to 6.0.0.
5
- * Added: This module can now convert initial values *to* the `initial` keyword,
6
- but only when the browser support is sufficient. You may use Browserslist to
7
- supply a list of browsers; we recommend using the config file as the same
8
- values will be propagated to other cssnano plugins which have the same
9
- functionality. See https://github.com/ai/browserslist#config-file for
10
- more details.
11
-
12
- # 1.0.1
13
-
14
- * Update the initial value of `user-select` from `none` to `auto`.
15
-
16
- # 1.0.0
17
-
18
- * Initial release.