postcss-custom-properties
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,4 +1,8 @@ | ||
# 1.0.1 - 2014-11-03 | ||
- fix warning about custom prop used in non :root | ||
# 1.0.0 - 2014-11-02 | ||
- Add warning when a custom prop is used in another place that :root | ||
- Add warning when a custom prop is used in another place than :root | ||
- handle !important | ||
@@ -5,0 +9,0 @@ |
@@ -36,3 +36,8 @@ /** | ||
if (rule.selectors.length !== 1 || rule.selectors[0] !== ":root" || rule.parent.type !== "root") { | ||
console.warn(gnuMessage("Non :root only custom properties in non root level are not supported (" + rule.selectors + ")")) | ||
rule.each(function(decl) { | ||
var prop = decl.prop | ||
if (prop && prop.indexOf(VAR_PROP_IDENTIFIER) === 0) { | ||
console.warn(gnuMessage("Custom property ignored: found in another place than top level :root (" + rule.selectors + " { ... " + prop + ": ... })" + (rule.parent.type !== "root" ? ", in " + rule.parent.type : ""))) | ||
} | ||
}) | ||
return | ||
@@ -39,0 +44,0 @@ } |
{ | ||
"name": "postcss-custom-properties", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "PostCSS plugin to polyfill W3C CSS Custom Properties for cascading variables", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
10172
150