Prerequisites
I tried to reproduce the issue when...
Description
In dark mode, a momentary FOUC white flash occurs when opening and refreshing the Dashboard page, which is very annoying and unfriendly to the eyes.
Adding the following to the dashboard.html page should fix the issue:
<meta name="color-scheme" content="light dark" />
<style>
:root {
color-scheme: light dark;
background-color: light-dark(rgb(240, 240, 242), rgb(27, 27, 35));
}
</style>
A specific URL where the issue occurs.
moz-extension://637c5b58-c248-4b59-aaff-17ada4d976c1/dashboard.html#settings.html
Steps to Reproduce
- Both the system and browser are in dark mode
- Click toolbar uBlock Origin browser action button (popup)
- Click
Open the dashboard button in the popup
- The moment you open the dashboard, the white flash will occur
- Click browser
Reload current page button (or Command+R), reproduce again
Expected behavior
No annoying FOUC white flash 🙏
Actual behavior
Have annoying FOUC white flash almost everytime 💥
uBO version
uBlock Origin 1.63.2
Browser name and version
Firefox
Operating System and version
macOS
Prerequisites
I tried to reproduce the issue when...
Description
In dark mode, a momentary FOUC white flash occurs when opening and refreshing the Dashboard page, which is very annoying and unfriendly to the eyes.
Adding the following to the
dashboard.htmlpage should fix the issue:A specific URL where the issue occurs.
moz-extension://637c5b58-c248-4b59-aaff-17ada4d976c1/dashboard.html#settings.htmlSteps to Reproduce
Open the dashboardbutton in the popupReload current pagebutton (or Command+R), reproduce againExpected behavior
No annoying FOUC white flash 🙏
Actual behavior
Have annoying FOUC white flash almost everytime 💥
uBO version
uBlock Origin 1.63.2
Browser name and version
Firefox
Operating System and version
macOS