From 7082fc7d64cd2dfec9793fe775b9f1666624f6d5 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 2 Nov 2023 16:35:10 +0200 Subject: [PATCH] urlbar_popup_full_width: add workaround for Fx 119 light-dark() problem --- chrome/urlbar_popup_full_width.css | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/chrome/urlbar_popup_full_width.css b/chrome/urlbar_popup_full_width.css index 26140c9..3a944e0 100644 --- a/chrome/urlbar_popup_full_width.css +++ b/chrome/urlbar_popup_full_width.css @@ -50,4 +50,19 @@ See the above repository for updates as well as full license text. */ /* This may seem pretty weird, but it gets around an issue where the height of urlbar may suddenly change when one starts typing into it */ /* If you are otherwise modifying the urlbar height then you might need to modify the height of this too */ -#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; } \ No newline at end of file +#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; } + +/* This is a workaround for fx 119 specifically for users that use default theme, should remove when 120 is released. See bug 1853524 */ +#urlbar:not(:-moz-lwtheme){ + --toolbar-bgcolor: #f9f9fb; + --toolbar-field-background-color: rgb(240, 240, 244); + --toolbar-field-focus-background-color: white; +} +/* ...and for dark variant */ +@media (prefers-color-scheme: dark){ + #urlbar:not(:-moz-lwtheme){ + --toolbar-bgcolor: rgb(43, 42, 51); + --toolbar-field-background-color: rgb(28, 27, 34); + --toolbar-field-focus-background-color: rgb(66, 65, 77) + } +}