-
Notifications
You must be signed in to change notification settings - Fork 52
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
Custom selectors breaking #157
Comments
Okay, I can verify the issue. The following CSS does work: @custom-selector :--foobar .foo.bar;
:--foobar, a {
background: red;
} It becomes .foo.bar, a {
background: red;
} While the following CSS does not work: @custom-selector :--foobar .foo.bar;
a, :--foobar {
background: red;
} It instead becomes: a, .foo .bar {
background: red;
} |
@iamso @jonathantneal Based on tests #161 problem not in |
Since October, we have made many releases and perhaps this is resolved. If not, csstools/postcss-preset-env#89 can be re-opened. |
@jonathantneal the issue is still not resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
while switching my project template from postcss-cssnext to postcss-preset-env I have discovered that custom selectors are not parsed correctly anymore.
Simple use cases still work, but if you add multiple custom selectors it starts getting weird.
I have posted this issue with postcss-preset-env and @jonathantneal suggested that the problem might be with this package.
Here is an example:
The expected output is this:
But what you get instead is this:
I have tested this example here https://preset-env.cssdb.org/playground and it behaves exactly as in my local setup.
As you can see, it breaks the
:checked
part of the selector and therefore it doesn't work.It does work if you only use one, but with two, like in this example, it breaks the second one.
Thanks
Steve
The text was updated successfully, but these errors were encountered: