Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Use the postcss-selector-matches #16

Closed
yisibl opened this issue Jun 2, 2015 · 5 comments
Closed

Use the postcss-selector-matches #16

yisibl opened this issue Jun 2, 2015 · 5 comments

Comments

@yisibl
Copy link
Contributor

yisibl commented Jun 2, 2015

In order to support more complex cases, We can use the postcss-selector-matches to transform.

@MoOx Do you feel that you are directly dependent on another plugin?

/* input: */
@custom-selector :--any-link :link, :visited;
@custom-selector :--heading h1, h2, h3;

:--heading > a:--any-link {
  color: red;
}

/* Then use the postcss-selector-matches to transform: */
:matches(h1, h2, h3) > a:matches(:link, :visitedk) {
  color: red;
}

/* output: */
h1 > a:link, h2 > a:link, h3 > a:link, h1 > a:visited, h2 > a:visited, h3 > a:visited {
  color: red;
}
@MoOx
Copy link
Contributor

MoOx commented Jun 2, 2015

What is the purpose of this issue ?

The only real issue I can see right is that postcss-custom-selectors is not compatible with postcss-selector-matches and I already opened this issue #15

@MoOx
Copy link
Contributor

MoOx commented Jun 2, 2015

I think we should close this issue. No ?

@MoOx
Copy link
Contributor

MoOx commented Jun 13, 2015

Why do you want to add this plugin here ?
You just need to pipe those 2 plugins.
You can see it's already working if you do that on http://cssnext.io/playground/
You should definitely close this issue

@MoOx
Copy link
Contributor

MoOx commented Jun 13, 2015

Each plugin have their own responsibility.

@MoOx
Copy link
Contributor

MoOx commented Jul 14, 2015

Closed by #27

@MoOx MoOx closed this as completed Jul 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants