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

[Bug] CSS modification stopped working #15

Open
Liz-chan opened this issue Jul 26, 2022 · 3 comments
Open

[Bug] CSS modification stopped working #15

Liz-chan opened this issue Jul 26, 2022 · 3 comments

Comments

@Liz-chan
Copy link

I just noticed that the extension updated to 3.1.0, and the CSS that I use to make all the PDFs dark themed stopped working. I was wondering if it was a byproduct of updating to manifest v3, or a bug that was missed.

Here is the CSS snippet for reference:

#viewerContainer > #viewer > .page > .canvasWrapper > canvas {
    filter: grayscale(100%);
    filter: invert(100%);
}
@Emano-Waldeck
Copy link
Owner

I just tried this CSS on the options page, and it works fine for me. Try reinstalling the extension to see if it helps.

@Liz-chan
Copy link
Author

Liz-chan commented Jul 26, 2022

It happens when I install the extension on a fresh Chromium instance too. It seems that PDFs are always dark now, even in light mode, so that CSS snippet up there that used to make it black in the previous version, still works, but now it just inverts the current dark mode one, so it looks a bit like a beige color with it.

Without the CSS:
image

With the CSS:
image

@Emano-Waldeck
Copy link
Owner

I have no idea what is causing the default dark view for you. You can use the DevTools to see the origin of the dark background when there is no CSS injection.

For me, on a clean install, this is how it looks:

default

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