autoprefixer 10.5.3 → 10.5.5

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
@@ -1,4 +1,4 @@
1
- # Autoprefixer [![Cult Of Martians][cult-img]][cult]
1
+ # Autoprefixer
2
2
 
3
3
  <img align="right" width="94" height="71"
4
4
  src="https://postcss.github.io/autoprefixer/logo.svg"
@@ -41,13 +41,16 @@ of Autoprefixer.
41
41
 
42
42
  Twitter account for news and releases: [@autoprefixer].
43
43
 
44
- <a href="https://evilmartians.com/?utm_source=autoprefixer">
45
- <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
46
- </a>
44
+ ---
45
+
46
+ <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Autoprefixer is built by <b><a href="https://evilmartians.com/">Evil Martians</a></b>, an American design and engineering consultancy for <b>developer tools, AI, and cybersecurity startups</b>.
47
+
48
+ ---
47
49
 
48
50
  [interactive demo]: https://autoprefixer.github.io/
49
51
  [@autoprefixer]: https://twitter.com/autoprefixer
50
52
  [Can I Use]: https://caniuse.com/
51
- [cult-img]: https://cultofmartians.com/assets/badges/badge.svg
52
53
  [PostCSS]: https://github.com/postcss/postcss
53
- [cult]: https://cultofmartians.com/tasks/autoprefixer-grid.html
54
+
55
+ ## Docs
56
+ Read full docs **[here](https://github.com/postcss/autoprefixer#readme)**.
package/lib/resolution.js CHANGED
@@ -3,8 +3,10 @@ let FractionJs = require('fraction.js')
3
3
  let Prefixer = require('./prefixer')
4
4
  let utils = require('./utils')
5
5
 
6
- const REGEXP = /(min|max)-resolution\s*:\s*\d*\.?\d+(dppx|dpcm|dpi|x)/gi
7
- const SPLIT = /(min|max)-resolution(\s*:\s*)(\d*\.?\d+)(dppx|dpcm|dpi|x)/i
6
+ const REGEXP =
7
+ /(min|max)-resolution\s*:\s*(?:\d+(?:\.\d+)?|\.\d+)(dppx|dpcm|dpi|x)/gi
8
+ const SPLIT =
9
+ /(min|max)-resolution(\s*:\s*)(\d+(?:\.\d+)?|\.\d+)(dppx|dpcm|dpi|x)/i
8
10
 
9
11
  class Resolution extends Prefixer {
10
12
  /**
package/lib/selector.js CHANGED
@@ -38,10 +38,12 @@ class Selector extends Prefixer {
38
38
  return false
39
39
  }
40
40
 
41
+ let beforeSelector = list.comma(before.selector).join(', ')
42
+
41
43
  let some = false
42
44
  for (let key in prefixeds[this.name]) {
43
45
  let prefixed = prefixeds[this.name][key]
44
- if (before.selector === prefixed) {
46
+ if (beforeSelector === prefixed) {
45
47
  if (prefix === key) {
46
48
  return true
47
49
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.5.3",
3
+ "version": "10.5.5",
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",
@@ -33,8 +33,8 @@
33
33
  "main": "lib/autoprefixer.js",
34
34
  "types": "lib/autoprefixer.d.ts",
35
35
  "dependencies": {
36
- "browserslist": "^4.28.6",
37
- "caniuse-lite": "^1.0.30001805",
36
+ "browserslist": "^4.28.9",
37
+ "caniuse-lite": "^1.0.30001810",
38
38
  "fraction.js": "^5.3.4",
39
39
  "picocolors": "^1.1.1",
40
40
  "postcss-value-parser": "^4.2.0"