Skip to content

Commit 7082fc7

Browse files
committed
urlbar_popup_full_width: add workaround for Fx 119 light-dark() problem
1 parent 576b7d2 commit 7082fc7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

chrome/urlbar_popup_full_width.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,19 @@ See the above repository for updates as well as full license text. */
5050

5151
/* 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 */
5252
/* If you are otherwise modifying the urlbar height then you might need to modify the height of this too */
53-
#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; }
53+
#urlbar > #urlbar-input-container::before{ content: ""; display: flex; height: 24px; }
54+
55+
/* This is a workaround for fx 119 specifically for users that use default theme, should remove when 120 is released. See bug 1853524 */
56+
#urlbar:not(:-moz-lwtheme){
57+
--toolbar-bgcolor: #f9f9fb;
58+
--toolbar-field-background-color: rgb(240, 240, 244);
59+
--toolbar-field-focus-background-color: white;
60+
}
61+
/* ...and for dark variant */
62+
@media (prefers-color-scheme: dark){
63+
#urlbar:not(:-moz-lwtheme){
64+
--toolbar-bgcolor: rgb(43, 42, 51);
65+
--toolbar-field-background-color: rgb(28, 27, 34);
66+
--toolbar-field-focus-background-color: rgb(66, 65, 77)
67+
}
68+
}

0 commit comments

Comments
 (0)