Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascading/compound selector #160

Open
emilbayes opened this issue Oct 30, 2018 · 3 comments
Open

Cascading/compound selector #160

emilbayes opened this issue Oct 30, 2018 · 3 comments

Comments

@emilbayes
Copy link
Member

Is there anything preventing sheetify from parsing a selector like this: .validate :host:invalid? In my case this leaves the :host part alone instead of replacing the token with the right class name

@emilbayes emilbayes changed the title Cascading selector Cascading/compound selector Oct 30, 2018
@goto-bus-stop
Copy link
Member

Sounds like a bug in https://github.com/stackcss/postcss-prefix

@goto-bus-stop
Copy link
Member

This line:

https://github.com/stackcss/postcss-prefix/blob/e8fc6d9e48348e7270881a63ce721f9ac06a9bad/index.js#L25-L26

I think before :host was used, selectors were prefixed by default, maybe this is a leftover from that? I wasn't using sheetify back then

@emilbayes
Copy link
Member Author

I tried digging into the prefix code but wasn't quite ready to go down the postcss rabbit hole 😄 The line in question seems not to be processed for some reason, as I find the exact same selector in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants