Skip to content

Commit

Permalink
Bug 1858405 - Prevent PBM new tab background color flash when loading…
Browse files Browse the repository at this point in the history
… a webpage r=mhowell,desktop-theme-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D193955
  • Loading branch information
Cieara Meador committed Dec 4, 2023
1 parent c7c9a42 commit 7d910a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browser/themes/shared/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,19 @@
ThemeVariableMap.sys.mjs when the user has a theme that defines
ntp_background. */
--tabpanel-background-color: #25003e !important;

/* stylelint-disable-next-line media-query-no-invalid */
@media (-moz-bool-pref: "browser.privatebrowsing.felt-privacy-v1") {
--tabpanel-background-color: linear-gradient(45deg, #722291 0%, #45278D 50%, #393473 100%) !important;
}
}
}

#tabbrowser-tabpanels {
appearance: none;
padding: 0;
color-scheme: unset;
background-color: var(--tabpanel-background-color);
background: var(--tabpanel-background-color);

browser[type=content] {
color-scheme: env(-moz-content-preferred-color-scheme);
Expand Down

0 comments on commit 7d910a5

Please sign in to comment.