autoprefixer 10.4.21 → 10.4.23

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
@@ -16,12 +16,7 @@ entirely):
16
16
  }
17
17
 
18
18
  .image {
19
- background-image: url(image@1x.png);
20
- }
21
- @media (min-resolution: 2dppx) {
22
- .image {
23
- background-image: url(image@2x.png);
24
- }
19
+ width: stretch;
25
20
  }
26
21
  ```
27
22
 
@@ -38,13 +33,9 @@ of Autoprefixer.
38
33
  }
39
34
 
40
35
  .image {
41
- background-image: url(image@1x.png);
42
- }
43
- @media (-webkit-min-device-pixel-ratio: 2),
44
- (min-resolution: 2dppx) {
45
- .image {
46
- background-image: url(image@2x.png);
47
- }
36
+ width: -webkit-fill-available;
37
+ width: -moz-available;
38
+ width: stretch;
48
39
  }
49
40
  ```
50
41
 
package/data/prefixes.js CHANGED
@@ -617,18 +617,21 @@ f(prefixIntrinsic, { match: /x|\s#5/ }, browsers => {
617
617
 
618
618
  let prefixStretch = require('caniuse-lite/data/features/css-width-stretch')
619
619
 
620
- f(prefixStretch, browsers =>
621
- prefix(['stretch'], {
620
+ f(prefixStretch, browsers => {
621
+ f(prefixIntrinsic, { match: /x|\s#2/ }, firefox => {
622
+ browsers = browsers.concat(firefox)
623
+ })
624
+ return prefix(['stretch'], {
622
625
  browsers,
623
626
  feature: 'css-width-stretch',
624
627
  props: sizeProps
625
628
  })
626
- )
629
+ })
627
630
 
628
631
  // Zoom cursors
629
- let prefixCursorsNewer = require('caniuse-lite/data/features/css3-cursors-newer')
632
+ let prefixCursorsNew = require('caniuse-lite/data/features/css3-cursors-newer')
630
633
 
631
- f(prefixCursorsNewer, browsers =>
634
+ f(prefixCursorsNew, browsers =>
632
635
  prefix(['zoom-in', 'zoom-out'], {
633
636
  browsers,
634
637
  feature: 'css3-cursors-newer',
@@ -1,4 +1,3 @@
1
- let range = require('normalize-range')
2
1
  let parser = require('postcss-value-parser')
3
2
 
4
3
  let OldValue = require('../old-value')
@@ -230,7 +229,7 @@ class Gradient extends Value {
230
229
  nodes[0].value = this.normalizeUnit(nodes[0].value, 1)
231
230
  } else if (nodes[0].value.includes('deg')) {
232
231
  let num = parseFloat(nodes[0].value)
233
- num = range.wrap(0, 360, num)
232
+ num = (num % 360 + 360) % 360
234
233
  nodes[0].value = `${num}deg`
235
234
  }
236
235
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.4.21",
3
+ "version": "10.4.23",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -39,10 +39,9 @@
39
39
  "postcss": "^8.1.0"
40
40
  },
41
41
  "dependencies": {
42
- "browserslist": "^4.24.4",
43
- "caniuse-lite": "^1.0.30001702",
44
- "fraction.js": "^4.3.7",
45
- "normalize-range": "^0.1.2",
42
+ "browserslist": "^4.28.1",
43
+ "caniuse-lite": "^1.0.30001760",
44
+ "fraction.js": "^5.3.4",
46
45
  "picocolors": "^1.1.1",
47
46
  "postcss-value-parser": "^4.2.0"
48
47
  }