-
Notifications
You must be signed in to change notification settings - Fork 11
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
error on css if using ":has" #12
Comments
Can you provide a small sample application that I can use to debug your issue? I've tried multiple combinations of :has and they all compile as expected. .l-test:has(.l-te) { .l-test:not(:has(.l-te)) { .form-property-check-item .drop-value:not(:has(input:checked)) + .property .property-list-title { |
@failwyn I believe the issue is in the BuildBundlerMinifier nuget package. If I uninstall, the extension compiles the :has pseudo-class without error. |
Thanks, I’ll test using the nuget package when I get back to work next week. |
For me it fails if the has selector includes an id fragment, but not with a class.
This works OK
Visual Studio 17.8.0 |
I think that it should also be noted here that support for the :has selector fails:
Gives an error due to the |
@AlfonsoML would you mind adding an issue to the NUglify Repo about the :has selector with the Id and create a new issue for @support? |
The :has() with an id it's working properly for me in current master of NUglify:
but it's still generating the same error in Bundler&Minifier: I've created trullock/NUglify#401 for the "@supports selector" |
Installed product versions
Description
Severity Code Description Project File Line Suppression State
Error 0 Expected identifier, found ':' ...\wwwroot\Themes\Main.css
Steps to recreate
.form-property-check-item .drop-value:not(:has(input:checked)) + .property .property-list-title,
Current behavior
if i have :has(xxxxx) gives the error
Expected behavior
if i remove :has(xxxxx) its ok
The text was updated successfully, but these errors were encountered: