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
The CSS variable is scoped to :root, but the @font-face is outside of root when compiled. I'm not sure if this is by design, or a bug. There is some conversation about where it should be defined — but I feel putting it inside :root should be valid.
It just means my css variables are named before the @font-face in the main.css compiled file — the CSS still seems to work, but it might cause problems in the future.
Expected behavior:
I expected the @font-face rule to be inside :root.
Environment information:
Less version 4.2.0 on Mac.
The text was updated successfully, but these errors were encountered:
To reproduce:
You can see the issue on this preview — although in my version, I have a file called
root.less
that's importing the@font-face
code from another file.The following scope isn't respected:
The CSS variable is scoped to
:root
, but the@font-face
is outside of root when compiled. I'm not sure if this is by design, or a bug. There is some conversation about where it should be defined — but I feel putting it inside:root
should be valid.It just means my css variables are named before the
@font-face
in themain.css
compiled file — the CSS still seems to work, but it might cause problems in the future.Expected behavior:
I expected the
@font-face
rule to be inside:root
.Environment information:
Less version 4.2.0 on Mac.
The text was updated successfully, but these errors were encountered: