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

":not()" is crashing Wordpress #231

Closed
blickwerker opened this issue Apr 25, 2022 · 6 comments
Closed

":not()" is crashing Wordpress #231

blickwerker opened this issue Apr 25, 2022 · 6 comments

Comments

@blickwerker
Copy link

Empty selector list in the not() pseudo class is crashing the site.

Example CSS for reproduction:
.class:not()

Expected behavior
The CSS specification allows empty selector list for the not() pseudo class, so error free compilation is expected.

@shadoath
Copy link
Collaborator

Take a look at #233 to see if having ScssPHP v1.10 will fix your issue

@shadoath
Copy link
Collaborator

@blickwerker did you try the latest version of the plugin?

@shadoath
Copy link
Collaborator

@blickwerker did you try the latest version?

@blickwerker
Copy link
Author

WPSCSS 4.0.2

This is working:
image

and this leads to an critical wordpress error:
image

@gcwebsites
Copy link
Collaborator

https://developer.mozilla.org/en-US/docs/Web/CSS/:not

The :not() pseudo-class requires a comma-separated list of one or more selectors as its argument.

You need to have a value for the not() function.

This isn't a plugin error, but more a coding error from what I can see.

@blickwerker
Copy link
Author

shame on me, I was sure the specification allows an empty selector, but this indeed isn't the fact.

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

3 participants