diff --git a/lib/css-tools.js b/lib/css-tools.js
index e054f6bb..4b1e77fb 100644
--- a/lib/css-tools.js
+++ b/lib/css-tools.js
@@ -23,7 +23,7 @@ function flattenToSelectors(cssAst) {
var atrule = this.atrule;
var rule = node;
- node.selector.children.each(function(selectorNode, selectorItem) {
+ node.prelude.children.each(function(selectorNode, selectorItem) {
var selector = {
item: selectorItem,
atrule: atrule,
diff --git a/package.json b/package.json
index 343d77a3..2e29d1d8 100644
--- a/package.json
+++ b/package.json
@@ -48,28 +48,26 @@
"jshint": "jshint --show-non-errors ."
},
"dependencies": {
- "coa": "~1.0.1",
+ "coa": "~2.0.0",
"colors": "~1.1.2",
- "css-select": "^1.3.0-rc0",
- "css-select-base-adapter": "^0.1.0",
- "css-tree": "1.0.0-alpha22",
- "csso": "^3.0.1",
- "js-yaml": "~3.7.0",
- "mkdirp": "~0.5.1",
+ "css-select": "~1.3.0-rc0",
+ "css-select-base-adapter": "~0.1.0",
+ "css-tree": "~1.0.0-alpha25",
+ "csso": "^3.3.1",
+ "js-yaml": "~3.10.0",
"object.values": "^1.0.4",
- "sax": "~1.2.1",
- "stable": "^0.1.5",
- "whet.extend": "~0.9.9",
+ "sax": "~1.2.4",
+ "stable": "~0.1.6",
"util.promisify": "~1.0.0"
},
"devDependencies": {
- "coveralls": "~2.11.14",
- "fs-extra": "~4.0.1",
+ "coveralls": "~3.0.0",
+ "fs-extra": "~4.0.2",
"istanbul": "~0.4.5",
- "mocha": "~3.2.0",
+ "mocha": "~4.0.1",
"mocha-istanbul": "~0.3.0",
"mock-stdin": "~0.3.1",
- "should": "11.2.0"
+ "should": "~13.1.2"
},
"engines": {
"node": ">=4.0.0"
diff --git a/plugins/inlineStyles.js b/plugins/inlineStyles.js
index 13d9c616..d3fe62fd 100644
--- a/plugins/inlineStyles.js
+++ b/plugins/inlineStyles.js
@@ -69,7 +69,7 @@ exports.fn = function(document, opts) {
parseCustomProperty: false
});
} catch (parseError) {
- console.warn('Warning: Parse error of styles of element, skipped. Error details: ' + parseError);
+ // console.warn('Warning: Parse error of styles of element, skipped. Error details: ' + parseError);
continue;
}
@@ -109,7 +109,7 @@ exports.fn = function(document, opts) {
selectedEls = document.querySelectorAll(selectorStr);
} catch (selectError) {
if (selectError.constructor === SyntaxError) {
- console.warn('Warning: Syntax error when trying to select \n\n' + selectorStr + '\n\n, skipped. Error details: ' + selectError);
+ // console.warn('Warning: Syntax error when trying to select \n\n' + selectorStr + '\n\n, skipped. Error details: ' + selectError);
continue;
}
throw selectError;
@@ -159,7 +159,7 @@ exports.fn = function(document, opts) {
if (opts.removeMatchedSelectors && selector.selectedEls !== null && selector.selectedEls.length > 0) {
// clean up matching simple selectors if option removeMatchedSelectors is enabled
- selector.rule.selector.children.remove(selector.item);
+ selector.rule.prelude.children.remove(selector.item);
}
}
@@ -205,7 +205,7 @@ exports.fn = function(document, opts) {
// clean up rulesets without any css selectors left
if (node.type === 'Rule' &&
- node.selector.children.isEmpty()) {
+ node.prelude.children.isEmpty()) {
list.remove(item);
}
});
diff --git a/test/plugins/inlineStyles.14.svg b/test/plugins/inlineStyles.14.svg
index 74e17a55..b89d3b36 100644
--- a/test/plugins/inlineStyles.14.svg
+++ b/test/plugins/inlineStyles.14.svg
@@ -17,7 +17,12 @@
@@@
@@@