autoprefixer 7.2.2 → 7.2.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/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 7.2.3
5
+ * Fix `grid-template-areas` in `@media` (by Evgeny Petukhov).
6
+
4
7
  ## 7.2.2
5
8
  * Fix `_autoprefixerDisabled is undefined` issue.
6
9
 
@@ -60,14 +60,23 @@ var GridTemplateAreas = function (_Declaration) {
60
60
  return _possibleConstructorReturn(this, _Declaration.apply(this, arguments));
61
61
  }
62
62
 
63
+ GridTemplateAreas.prototype.getRoot = function getRoot(parent) {
64
+ if (parent.type === 'atrule' || !parent.parent) {
65
+ return parent;
66
+ }
67
+ return this.getRoot(parent.parent);
68
+ };
69
+
63
70
  /**
64
71
  * Translate grid-template-areas to separate -ms- prefixed properties
65
72
  */
73
+
74
+
66
75
  GridTemplateAreas.prototype.insert = function insert(decl, prefix, prefixes, result) {
67
76
  if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
68
77
 
69
78
  var areas = parseGridAreas(decl.value);
70
- decl.root().walkDecls('grid-area', function (gridArea) {
79
+ this.getRoot(decl.parent).walkDecls('grid-area', function (gridArea) {
71
80
  var value = gridArea.value;
72
81
  var area = areas[value];
73
82
  delete areas[value];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
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",
@@ -14,7 +14,7 @@
14
14
  "repository": "postcss/autoprefixer",
15
15
  "dependencies": {
16
16
  "browserslist": "^2.10.0",
17
- "caniuse-lite": "^1.0.30000780",
17
+ "caniuse-lite": "^1.0.30000783",
18
18
  "normalize-range": "^0.1.2",
19
19
  "num2fraction": "^1.2.2",
20
20
  "postcss": "^6.0.14",
@@ -27,10 +27,10 @@
27
27
  "babel-preset-env": "^1.6.1",
28
28
  "babelify": "^8.0.0",
29
29
  "browserify": "^14.5.0",
30
- "eslint": "^4.12.1",
30
+ "eslint": "^4.13.1",
31
31
  "eslint-ci": "^0.1.1",
32
32
  "eslint-config-postcss": "^2.0.2",
33
- "fs-extra": "^4.0.3",
33
+ "fs-extra": "^5.0.0",
34
34
  "gulp": "^3.9.1",
35
35
  "gulp-babel": "^7.0.0",
36
36
  "gulp-coffee": "^2.3.5",