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

Minify CSS, breaks @supports selector #401

Open
AlfonsoML opened this issue Jul 20, 2024 · 0 comments
Open

Minify CSS, breaks @supports selector #401

AlfonsoML opened this issue Jul 20, 2024 · 0 comments

Comments

@AlfonsoML
Copy link

AlfonsoML commented Jul 20, 2024

Tested using latest master

Describe the bug
Trying to minify CSS that includes @supports selector produces wrong output

To Reproduce

var result = Uglify.Css(@"@supports selector(:has(*)) {
	.VentaRapida {
		position: absolute;
	}
}");

Minified output or stack trace
@supports :has(*)){.VentaRapida{position:absolute;}}

Excepted output code
@supports selector(:has(*)){.VentaRapida{position:absolute;}}

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