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
WARNING: ▲ [WARNING] Deprecation [plugin angular-sass]
src/lib/my-lib.component.scss:14:2:
14 │ --lib-my-lib-background-color: 1px;
╵ ^
Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.
More info: https://sass-lang.com/d/mixed-decls
However, the @Property {} block is native CSS and should not trigger this warning.
It's not a nested rule.
SASS: v1.77.6
The text was updated successfully, but these errors were encountered:
First of all, this isn't producing valid CSS in the first place. Because you're nesting @property within :host, Sass bubbles it up to the top-level and puts :host inside, which isn't legal.
Second, note that the relative order of the background-color/font-family declarations versus the @property rule are currently different in the output than they are in the input. That's what the deprecation warning is about. Sass avoids having intimate knowledge of CSS internals where possible—it doesn't keep track of whether @property could potentially have order-sensitive semantics. But it does know that it's changing the order and that's a risk, so it tells you as much.
With the following CSS:
The compilation output the following warning
However, the @Property {} block is native CSS and should not trigger this warning.
It's not a nested rule.
SASS: v1.77.6
The text was updated successfully, but these errors were encountered: