-
Notifications
You must be signed in to change notification settings - Fork 150
@font-face getting removed inside nested :global rule #236
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
Comments
Hey @silllli 👋 I will take a look at what's happening here, but Edit: The output from |
Oh that’s good to know, thank you! I encountered the problem because I import a SCSS file with sitewide needed rules in my |
I just stumbled on this problem again (and found my issue here). I used some older Svelte projects of mine as reference for my current one and that’s why I thought (again!) it should work, as it did back then. So, something changed along they way (it’s not the |
Describe the bug
When adding a
@font-face
declaration nested inside a:global
rule (using SASS), the@font-face
declaration is getting removed. The resulting CSS looks like this:However using the
global
attribute on the style tag works.To Reproduce
Add a
@font-face
declaration inside a:global
ruleIf you can’t reproduce the problem I’ll create a repo later.
Expected behavior
The
@font-face
declaration being globally available.Information about your project:
svelte
version: 3.17.3sapper
version: 0.28.0svelte-preprocess
version: 4.2.0The text was updated successfully, but these errors were encountered: