autoprefixer 10.5.1 → 10.5.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
@@ -33,8 +33,8 @@ of Autoprefixer.
33
33
  }
34
34
 
35
35
  .image {
36
- width: -webkit-fill-available;
37
36
  width: -moz-available;
37
+ width: -webkit-fill-available;
38
38
  width: stretch;
39
39
  }
40
40
  ```
@@ -6,6 +6,15 @@ function regexp(name) {
6
6
  }
7
7
 
8
8
  class Intrinsic extends Value {
9
+ constructor(name, prefixes, all) {
10
+ super(name, prefixes, all)
11
+ if (this.isStretch() && prefixes.includes('-moz-')) {
12
+ // Generate -moz-available before -webkit-fill-available
13
+ // since -webkit-fill-available is closer to spec and FF supports both
14
+ this.prefixes = ['-moz-'].concat(prefixes.filter(i => i !== '-moz-'))
15
+ }
16
+ }
17
+
9
18
  add(decl, prefix) {
10
19
  if (decl.prop.includes('grid') && prefix !== '-webkit-') {
11
20
  return undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.5.1",
3
+ "version": "10.5.2",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": [
6
6
  "autoprefixer",