Skip to content

Commit

Permalink
Remove dumplicate paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoizey authored and MadLittleMods committed Jul 13, 2018
1 parent 366f5ec commit a817fb9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,13 @@ This plugin was spawned out of a [discussion on the `cssnext` repo](https://gith

There is another similar plugin available, [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties), although it restricts itself much more than this plugin, preferring partial spec conformance. This plugin has the same capabilities but also adds imperfect feature support which stem from not being to know what the DOM will look like when you compile your CSS. We instead look at the explicit structure of your CSS selectors.

### Interoperability
### Interoperability and differences from `postcss-custom-properties`

Putting `postcss-css-variables` in place of `postcss-custom-properties` should work out of the box.

In `postcss-custom-properties`, CSS variable declarations are specifically restricted to the `:root` selector. In `postcss-css-variables`, this is not the case and they may be declared inside any rule with whatever selector. The variables are substituted based on statically known CSS selector inheritance.
In [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties), CSS variable declarations are specifically restricted to the `:root` selector.

### Differences from `postcss-custom-properties`

In [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties), CSS variable declarations are specifically restricted to the `:root` selector. In `postcss-css-variables`, this is not the case and they may be declared inside any rule with whatever selector.

In `postcss-css-variables`, this is not the case and they may be declared inside any rule with whatever selector. The variables are substituted based on statically known CSS selector inheritance.

Here's a quick overview of the differences:

Expand Down

0 comments on commit a817fb9

Please sign in to comment.