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

handle @import #10

Open
fuzetsu opened this issue Oct 29, 2019 · 1 comment
Open

handle @import #10

fuzetsu opened this issue Oct 29, 2019 · 1 comment
Labels
discussion enhancement New feature or request

Comments

@fuzetsu
Copy link
Owner

fuzetsu commented Oct 29, 2019

Currently zaftig doesn't support @import statements, would it make sense to do so? They only work if they're declared as the first rules in the stylesheet.

So would they only work in z.global? I feel like it probably doesn't make sense to implement, since links work fine, and there's less uncertainty about how they can be included..
Including an external stylesheet kind of goes against CSS in JS anyway...

https://developer.mozilla.org/en-US/docs/Web/CSS/@import

@fuzetsu fuzetsu added enhancement New feature or request discussion labels Oct 29, 2019
@fuzetsu fuzetsu changed the title @import support handle @import Oct 29, 2019
@fuzetsu
Copy link
Owner Author

fuzetsu commented Dec 6, 2020

Toyed around with an implementation for this, but I'm not sure if it's worth it.
It behaves a bit strangely in Firefox while in debug mode, and I'm not sure if I see the use at this point.

Until I see a good use case I won't bother adding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant