Socket
Socket
Sign inDemoInstall

postcss-custom-properties

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-custom-properties - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 1.0.2 - 2014-11-04
- More clear message for warning about custom prop used in non top-level :root
# 1.0.1 - 2014-11-03

@@ -2,0 +6,0 @@

2

index.js

@@ -39,3 +39,3 @@ /**

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 : "")))
console.warn(gnuMessage("Custom property ignored: not scoped to the top-level :root element (" + rule.selectors + " { ... " + prop + ": ... })" + (rule.parent.type !== "root" ? ", in " + rule.parent.type : "")))
}

@@ -42,0 +42,0 @@ })

{
"name": "postcss-custom-properties",
"version": "1.0.1",
"version": "1.0.2",
"description": "PostCSS plugin to polyfill W3C CSS Custom Properties for cascading variables",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,4 @@ # postcss-custom-properties [![Build Status](https://travis-ci.org/postcss/postcss-custom-properties.png)](https://travis-ci.org/postcss/postcss-custom-properties)

**N.B.** The transformation _is not complete_. It currently just aims to provide a future-proof way of using a **limited subset (to `:root` selector)** of the features provided by native CSS custom properties. Read [#1](https://github.com/postcss/postcss-custom-properties/issues/1) & [#9](https://github.com/postcss/postcss-custom-properties/issues/9) to know why this limitation exists.
**N.B.** The transformation _is not complete_. It currently just aims to provide a future-proof way of using a **limited subset (to top-level `:root` selector)** of the features provided by native CSS custom properties.
Read [#1](https://github.com/postcss/postcss-custom-properties/issues/1) & [#9](https://github.com/postcss/postcss-custom-properties/issues/9) to know why this limitation exists.

@@ -12,3 +13,5 @@ Works great with [postcss-calc](https://github.com/postcss/postcss-calc).

$ npm install postcss-custom-properties
```console
$ npm install postcss-custom-properties
```

@@ -78,6 +81,8 @@ ## Usage

$ git clone https://github.com/postcss/postcss-custom-properties.git
$ git checkout -b patch-1
$ npm install
$ npm test
```console
$ git clone https://github.com/postcss/postcss-custom-properties.git
$ git checkout -b patch-1
$ npm install
$ npm test
```

@@ -84,0 +89,0 @@ ## [Changelog](CHANGELOG.md)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc