autoprefixer 10.2.6 → 10.3.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.
- package/README.md +1 -2
- package/data/prefixes.js +19 -0
- package/lib/hacks/file-selector-button.js +30 -0
- package/lib/prefixes.js +2 -0
- package/lib/processor.js +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
title="Autoprefixer logo by Anton Lovchikov">
|
|
6
6
|
|
|
7
7
|
[PostCSS] plugin to parse CSS and add vendor prefixes to CSS rules using values
|
|
8
|
-
from [Can I Use]. It is
|
|
8
|
+
from [Can I Use]. It is recommended by Google and used in Twitter and Alibaba.
|
|
9
9
|
|
|
10
10
|
Write your CSS rules without vendor prefixes (in fact, forget about them
|
|
11
11
|
entirely):
|
|
@@ -59,7 +59,6 @@ Twitter account for news and releases: [@autoprefixer].
|
|
|
59
59
|
|
|
60
60
|
[interactive demo]: https://autoprefixer.github.io/
|
|
61
61
|
[@autoprefixer]: https://twitter.com/autoprefixer
|
|
62
|
-
[recommended]: https://developers.google.com/web/tools/setup/setup-buildtools#dont_trip_up_with_vendor_prefixes
|
|
63
62
|
[Can I Use]: https://caniuse.com/
|
|
64
63
|
[cult-img]: http://cultofmartians.com/assets/badges/badge.svg
|
|
65
64
|
[PostCSS]: https://github.com/postcss/postcss
|
package/data/prefixes.js
CHANGED
|
@@ -521,6 +521,25 @@ f(prefixFullscreen, { match: /x(\s#2|$)/ }, browsers =>
|
|
|
521
521
|
})
|
|
522
522
|
)
|
|
523
523
|
|
|
524
|
+
// File selector button
|
|
525
|
+
prefix(['::file-selector-button'], {
|
|
526
|
+
selector: true,
|
|
527
|
+
feature: 'fullscreen',
|
|
528
|
+
browsers: [
|
|
529
|
+
'chrome 89',
|
|
530
|
+
'edge 89',
|
|
531
|
+
'firefox 82',
|
|
532
|
+
'opera 75',
|
|
533
|
+
'safari 14.1',
|
|
534
|
+
'android 89',
|
|
535
|
+
'and_chr 89',
|
|
536
|
+
'op_mob 63',
|
|
537
|
+
'and_ff 82',
|
|
538
|
+
'ios_saf 14.5',
|
|
539
|
+
'samsung 15.0'
|
|
540
|
+
]
|
|
541
|
+
})
|
|
542
|
+
|
|
524
543
|
// Tab size
|
|
525
544
|
let prefixTabsize = require('caniuse-lite/data/features/css3-tabsize')
|
|
526
545
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
let Selector = require('../selector')
|
|
2
|
+
let utils = require('../utils')
|
|
3
|
+
|
|
4
|
+
class FileSelectorButton 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-file-upload-button'
|
|
23
|
+
}
|
|
24
|
+
return `::${prefix}file-selector-button`
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
FileSelectorButton.names = ['::file-selector-button']
|
|
29
|
+
|
|
30
|
+
module.exports = FileSelectorButton
|
package/lib/prefixes.js
CHANGED
|
@@ -12,6 +12,7 @@ let utils = require('./utils')
|
|
|
12
12
|
let hackFullscreen = require('./hacks/fullscreen')
|
|
13
13
|
let hackPlaceholder = require('./hacks/placeholder')
|
|
14
14
|
let hackPlaceholderShown = require('./hacks/placeholder-shown')
|
|
15
|
+
let hackFileSelectorButton = require('./hacks/file-selector-button')
|
|
15
16
|
let hackFlex = require('./hacks/flex')
|
|
16
17
|
let hackOrder = require('./hacks/order')
|
|
17
18
|
let hackFilter = require('./hacks/filter')
|
|
@@ -68,6 +69,7 @@ let hackFilterValue = require('./hacks/filter-value')
|
|
|
68
69
|
Selector.hack(hackFullscreen)
|
|
69
70
|
Selector.hack(hackPlaceholder)
|
|
70
71
|
Selector.hack(hackPlaceholderShown)
|
|
72
|
+
Selector.hack(hackFileSelectorButton)
|
|
71
73
|
Declaration.hack(hackFlex)
|
|
72
74
|
Declaration.hack(hackOrder)
|
|
73
75
|
Declaration.hack(hackFilter)
|
package/lib/processor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autoprefixer",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.3",
|
|
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"
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"postcss": "^8.1.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"browserslist": "^4.16.
|
|
30
|
-
"caniuse-lite": "^1.0.
|
|
31
|
-
"colorette": "^1.
|
|
29
|
+
"browserslist": "^4.16.8",
|
|
30
|
+
"caniuse-lite": "^1.0.30001252",
|
|
31
|
+
"colorette": "^1.3.0",
|
|
32
32
|
"fraction.js": "^4.1.1",
|
|
33
33
|
"normalize-range": "^0.1.2",
|
|
34
34
|
"postcss-value-parser": "^4.1.0"
|