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

Fix regression of background colors (dark mode) of Vimium iframes #4159

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

gdh1995
Copy link
Contributor

@gdh1995 gdh1995 commented Oct 31, 2022

Updated: color-scheme: light dark; works perfectly on Firefox 105/106 and Chrome 88/99/106 during my testes.

  1. The changes which breaks color-scheme: light, as reported in 'prefers-color-scheme: dark' doesn't work in vomnibar #4148, is caused by a fix of https://bugzilla.mozilla.org/show_bug.cgi?id=1782596 .
  2. And then I searched and found 1789338 - Element picker is light themed when uBlock origin theme is set to auto in Nightly
  3. So I installed uBlock Origin and tested its picker iframe, and noticed color-scheme: light dark (element-picker: Declare we support both light and dark color-schemes. gorhill/uBlock#3872)

Then this fixes #4156 and replaces commit fbeee3d.

I just found uBlock Origin applies `color-scheme: light dark` onto its iframes.
@gdh1995 gdh1995 changed the title fix unexpected background rects of iframes on Firefox 106+ fix unexpected background rects of iframes completely Nov 1, 2022
gdh1995 added a commit to gdh1995/vimium-c that referenced this pull request Nov 1, 2022
See philc/vimium#4159 .

`color-scheme: light dark;` works perfectly on Firefox 105/106 and Chrome 88/99/106 during my testes.

1. The changes which breaks `color-scheme: light`, as reported in philc/vimium#4148,
  is caused by a fix of https://bugzilla.mozilla.org/show_bug.cgi?id=1782596 .
2. And then I searched and found
  [1789338 - Element picker is light themed when uBlock origin theme is set to auto in Nightly](https://bugzilla.mozilla.org/show_bug.cgi?id=1789338)
3. So I installed uBlock Origin and tested its picker iframe, and noticed `color-scheme: light dark` (gorhill/uBlock#3872)
@nikinbaidar
Copy link

nikinbaidar commented Nov 1, 2022

Updated: color-scheme: light dark; works perfectly on Firefox 105/106 and Chrome 88/99/106 during my testes.
Then this fixes #4156 and replaces commit fbeee3d.

The problem persists with color-scheme: light dark; for .vimiumUIComponentVisible on Firefox 106.0.3.
Then again color-scheme: light seems to fix it but I'm left with a light themed vomnibar.

@gdh1995

This comment was marked as resolved.

@gdh1995
Copy link
Contributor Author

gdh1995 commented Nov 1, 2022

@nikinbaidar Sorry but had you added <meta name="color-scheme" content="light dark"> to pages/*.html when you tested it?

@nikinbaidar
Copy link

@nikinbaidar Sorry but had you added <meta name="color-scheme" content="light dark"> to pages/*.html when you tested it?

No. Do I need to add this on every html file in there?

@gdh1995
Copy link
Contributor Author

gdh1995 commented Nov 1, 2022

You may just apply all modification in this PR - it's enough.

@nikinbaidar
Copy link

nikinbaidar commented Nov 1, 2022

Yeah! Seems like it did it. Had to modify things as per your commit. Please merge this ASAP so that this can sustain over reboots.

@gdh1995 gdh1995 mentioned this pull request Nov 5, 2022
@philc philc changed the title fix unexpected background rects of iframes completely Fix regression of background colors (dark mode) of Vimium iframes Nov 29, 2022
@philc philc merged commit 49a5608 into philc:master Nov 29, 2022
@philc
Copy link
Owner

philc commented Nov 29, 2022

This fixes the cases I was noticing. Thanks for the detective work @gdh1995 .

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

Successfully merging this pull request may close these issues.

None yet

3 participants