You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is it possible to leave invalid CSS after running sass compilation? Sass cli command is only part of our styling pipe, unfortunately one that have to be process at the beginning. We're making use of "deep selector" (vuejs term) which looks like this "& >>> li", and is processed by different software. When running sass cli this part of css is cut with message: "The selector "& > > > li" is invalid CSS. It will be omitted from the generated CSS.
This will be an error in Dart Sass 2.0.0".
Can we somehow take this problem? I tried to use --silence-deprecation=bogus-combinators but without success.
The text was updated successfully, but these errors were encountered:
No. This will be a syntax error in Dart Sass 2.0.0, which means that there won't be a way for us to even represent it internally. In fact, one of the major reasons we're deprecating this behavior is because the current internal representation of invalid combinators adds major complications to Sass's selector logic.
I strongly recommend filing an issue against Vue to provide an alternative, CSS-compatible syntax for this. For example, Angular uses ::ng-deep for something similar.
I tried to use --silence-deprecation=bogus-combinators but without success.
This is a bug. I'll work on a fix.
nex3
changed the title
Leave invalid CSS after compilation option
--silence-deprecation doesn't work on the CLI
May 15, 2024
Hi, is it possible to leave invalid CSS after running sass compilation? Sass cli command is only part of our styling pipe, unfortunately one that have to be process at the beginning. We're making use of "deep selector" (vuejs term) which looks like this "& >>> li", and is processed by different software. When running sass cli this part of css is cut with message: "The selector "& > > > li" is invalid CSS. It will be omitted from the generated CSS.
This will be an error in Dart Sass 2.0.0".
Can we somehow take this problem? I tried to use --silence-deprecation=bogus-combinators but without success.
The text was updated successfully, but these errors were encountered: