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

Automatically wrapping CSS in @-moz-document url-prefix("chrome:") breaks some themes #358

Open
naiyerasif opened this issue Sep 8, 2024 · 2 comments

Comments

@naiyerasif
Copy link
Contributor

naiyerasif commented Sep 8, 2024

I've noticed that every theme downloaded from https://zen-browser.app/themes has its CSS automatically wrapped in @-moz-document url-prefix("chrome:") query. This breaks any theme that already has a @-moz-document query defined at its root.

I noticed this is breaking Compact Topsites. Is there an official workaround for this behavior?

@n7itro
Copy link
Member

n7itro commented Sep 8, 2024

The chrome.css files have this prefix because they are only intended to affect the browser chrome. They are not intended to function as userContent.css files for now

@naiyerasif
Copy link
Contributor Author

The chrome.css files have this prefix because they are only intended to affect the browser chrome. They are not intended to function as userContent.css files for now

Interesting. I probably missed this while checking the documentation on authoring themes. Still, does Zen plan to only support themes customizing browser chrome? If so, I can create a PR to remove Compact Topsites for now till this stance changes in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants