Bug 1549142 - Prevent the in-content menulist background color from being overridden when control is disabled on Windows r=dao
authorKestrel <ke5trel@protonmail.com>
Tue, 14 May 2019 11:22:11 +0000
changeset 532583 f5d5fc68b739aa886368e844eb461a9947503890
parent 532582 6b61e5d68fc6495cf84517b4c10d21595634ab25
child 532584 49dd0db0018af5f94f38a4dec13ad0246964827d
push id11270
push userrgurzau@mozilla.com
push dateWed, 15 May 2019 15:07:19 +0000
treeherdermozilla-beta@571bc76da583 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1549142
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1549142 - Prevent the in-content menulist background color from being overridden when control is disabled on Windows r=dao Differential Revision: https://phabricator.services.mozilla.com/D30519
toolkit/themes/windows/global/in-content/common.css
--- a/toolkit/themes/windows/global/in-content/common.css
+++ b/toolkit/themes/windows/global/in-content/common.css
@@ -21,16 +21,21 @@ xul|radio {
 @media (-moz-windows-default-theme: 0) {
   xul|checkbox[checked] > xul|*.checkbox-check,
   xul|*.radio-check[selected] {
     fill: -moz-fieldText;
     background-color: -moz-field;
   }
 }
 
+/* Override menulist.css */
+xul|menulist[disabled="true"] {
+  background-color: var(--in-content-button-background);
+}
+
 xul|menulist:-moz-focusring > xul|*.menulist-label-box {
   outline: none !important;
 }
 
 html|input[type="checkbox"]:-moz-focusring + html|label:before {
   outline: 1px dotted;
 }