Socket
Socket
Sign inDemoInstall

postcss-custom-properties

Package Overview
Dependencies
1
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

6

CHANGELOG.md

@@ -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 @@ }

2

package.json
{
"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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc