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

bug in PostCSS with @layer #1

Closed
romainmenke opened this issue Dec 3, 2022 · 1 comment
Closed

bug in PostCSS with @layer #1

romainmenke opened this issue Dec 3, 2022 · 1 comment

Comments

@romainmenke
Copy link
Owner

This fails :

@layer extensions {
 	@layer one, two;

 	@custom-media --mobile (min-width:320px) and (debug-layer: extensions);
 	@custom-media --tablet (min-width:768px) and (debug-layer: extensions);
 	@custom-media --desktop (min-width:1280px) and (debug-layer: extensions);

 	@layer two {
 		@custom-media --light (prefers-color-scheme: light) and (debug-layer: extensions-two);
 	}

 	@layer {
 		@custom-media --mobile (min-width:320px) and (debug-layer: extensions.anon-1);
 	}
 }
@romainmenke
Copy link
Owner Author

CSS above is transformed by a plugin into :

@layer extensions {
 	@layer one, two
}

This bit fails.

has been filed : postcss/postcss#1802

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

1 participant