Skip to content

Commit a817fb9

Browse files
nhoizeyMadLittleMods
authored andcommitted
Remove dumplicate paragraph
1 parent 366f5ec commit a817fb9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,16 +286,13 @@ This plugin was spawned out of a [discussion on the `cssnext` repo](https://gith
286286

287287
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.
288288

289-
### Interoperability
289+
### Interoperability and differences from `postcss-custom-properties`
290290

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

293-
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.
293+
In [`postcss-custom-properties`](https://github.com/postcss/postcss-custom-properties), CSS variable declarations are specifically restricted to the `:root` selector.
294294

295-
### Differences from `postcss-custom-properties`
296-
297-
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.
298-
295+
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.
299296

300297
Here's a quick overview of the differences:
301298

0 commit comments

Comments
 (0)