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

Pseudo-class :has issues when used with html tag descendant selectors #412

Closed
jbest84 opened this issue Dec 5, 2024 · 0 comments
Closed

Comments

@jbest84
Copy link
Contributor

jbest84 commented Dec 5, 2024

Describe the bug
Descendant selectors used in pseudo-class :has are incorrectly minified when the selector is an html tag

To Reproduce

var result1 = Uglify.Css(".foo:has(span span)");
Console.WriteLine(result1.Code);

Minified output or stack trace

.foo:has(spanspan)

Excepted output code

.foo:has(span span)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants