autoprefixer 10.3.7 → 10.4.0

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/data/prefixes.js CHANGED
@@ -524,7 +524,7 @@ f(prefixFullscreen, { match: /x(\s#2|$)/ }, browsers =>
524
524
  // File selector button
525
525
  prefix(['::file-selector-button'], {
526
526
  selector: true,
527
- feature: 'fullscreen',
527
+ feature: 'file-selector-button',
528
528
  browsers: [
529
529
  'chrome 89',
530
530
  'edge 89',
@@ -540,6 +540,17 @@ prefix(['::file-selector-button'], {
540
540
  ]
541
541
  })
542
542
 
543
+ // :autofill
544
+ let prefixAutofill = require('caniuse-lite/data/features/css-autofill')
545
+
546
+ f(prefixAutofill, browsers =>
547
+ prefix([':autofill'], {
548
+ selector: true,
549
+ feature: 'css-autofill',
550
+ browsers
551
+ })
552
+ )
553
+
543
554
  // Tab size
544
555
  let prefixTabsize = require('caniuse-lite/data/features/css3-tabsize')
545
556
 
@@ -0,0 +1,30 @@
1
+ let Selector = require('../selector')
2
+ let utils = require('../utils')
3
+
4
+ class Autofill extends Selector {
5
+ constructor(name, prefixes, all) {
6
+ super(name, prefixes, all)
7
+
8
+ if (this.prefixes) {
9
+ this.prefixes = utils.uniq(
10
+ this.prefixes.map(i => {
11
+ return '-webkit-'
12
+ })
13
+ )
14
+ }
15
+ }
16
+
17
+ /**
18
+ * Return different selectors depend on prefix
19
+ */
20
+ prefixed(prefix) {
21
+ if (prefix === '-webkit-') {
22
+ return ':-webkit-autofill'
23
+ }
24
+ return `:${prefix}autofill`
25
+ }
26
+ }
27
+
28
+ Autofill.names = [':autofill']
29
+
30
+ module.exports = Autofill
package/lib/prefixes.js CHANGED
@@ -65,7 +65,9 @@ let hackCrossFade = require('./hacks/cross-fade')
65
65
  let hackDisplayFlex = require('./hacks/display-flex')
66
66
  let hackDisplayGrid = require('./hacks/display-grid')
67
67
  let hackFilterValue = require('./hacks/filter-value')
68
+ let hackAutofill = require('./hacks/autofill')
68
69
 
70
+ Selector.hack(hackAutofill)
69
71
  Selector.hack(hackFullscreen)
70
72
  Selector.hack(hackPlaceholder)
71
73
  Selector.hack(hackPlaceholderShown)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.3.7",
3
+ "version": "10.4.0",
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"
@@ -29,11 +29,11 @@
29
29
  "postcss": "^8.1.0"
30
30
  },
31
31
  "dependencies": {
32
- "browserslist": "^4.17.3",
33
- "caniuse-lite": "^1.0.30001264",
32
+ "browserslist": "^4.17.5",
33
+ "caniuse-lite": "^1.0.30001272",
34
34
  "fraction.js": "^4.1.1",
35
35
  "normalize-range": "^0.1.2",
36
- "picocolors": "^0.2.1",
36
+ "picocolors": "^1.0.0",
37
37
  "postcss-value-parser": "^4.1.0"
38
38
  }
39
39
  }