Bug 1318903 - use !important to force vista/7 controls in fullscreen even on dark themes, r=dao, a=gchang
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 21 Nov 2016 16:41:23 +0000
changeset 358973 4164d5620eac1957830e904190d837835f62064d
parent 358972 1345c10edd8975499c9d786d04ee650e45c73b90
child 358974 1b954c82dd04faf1926804d89c0d130dc6b9ab93
push id1324
push usermtabara@mozilla.com
push dateMon, 16 Jan 2017 13:07:44 +0000
treeherdermozilla-release@a01c49833940 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, gchang
bugs1318903
milestone51.0
Bug 1318903 - use !important to force vista/7 controls in fullscreen even on dark themes, r=dao, a=gchang MozReview-Commit-ID: eIleloCNMZ
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -1101,17 +1101,21 @@ toolbar[brighttext] #close-button {
        (-moz-os-version: windows-win7) {
   #window-controls {
     margin-inline-start: 4px;
   }
 
   #minimize-button,
   #restore-button,
   #close-button {
-    list-style-image: url("chrome://global/skin/icons/windowControls.png");
+    /* Important to ensure this applies even on toolbar[brighttext] */
+    list-style-image: url("chrome://global/skin/icons/windowControls.png") !important;
+    /* Also override background color to a avoid hover background styling
+     * leaking through around the image. */
+    background-color: transparent !important;
     padding: 0;
   }
 
   #minimize-button {
     -moz-image-region: rect(0, 16px, 16px, 0);
   }
 
   #minimize-button:hover {