Bug 1190462 - Firefox shouldn't be completely unusable in high contrast white on windows 10, r=dao a=sylvestre
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Thu, 10 Sep 2015 15:51:45 +0100
changeset 297924 19a60a8e02c5d6e5284b5dac528994e40b8282d5
parent 297923 6bafad1876b534df26f48494bfe9fb1084499a57
child 297925 d6cad20ab005798b1c6af52e488508561b1d93d8
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, sylvestre
bugs1190462
milestone43.0a2
Bug 1190462 - Firefox shouldn't be completely unusable in high contrast white on windows 10, r=dao a=sylvestre
browser/themes/windows/browser-aero.css
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser-aero.css
+++ b/browser/themes/windows/browser-aero.css
@@ -93,16 +93,22 @@
     @media not all and (-moz-os-version: windows-win7) {
       @media not all and (-moz-os-version: windows-win8) {
         @media (-moz-windows-default-theme) {
           #main-window {
             background-color: hsl(0, 0%, 78%);
           }
         }
 
+        @media not all and (-moz-windows-default-theme) {
+          #main-window {
+            background-color: transparent;
+          }
+        }
+
         #titlebar-buttonbox,
         .titlebar-button {
           -moz-appearance: none !important;
         }
 
         .titlebar-button {
           border: none;
           margin: 0 !important;
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -344,28 +344,23 @@
   z-index: 1;
 }
 
 #nav-bar {
   background-clip: padding-box;
   background-image: linear-gradient(@toolbarHighlight@, transparent);
 }
 
-@media (-moz-os-version: windows-xp),
-       (-moz-os-version: windows-vista),
-       (-moz-os-version: windows-win7),
-       (-moz-os-version: windows-win8) {
-  #nav-bar {
-    border-top: 1px solid @toolbarShadowColor@ !important;
-    box-shadow: 0 1px 0 @toolbarHighlight@ inset;
-  }
-  @media not all and (-moz-windows-compositor) {
-    #TabsToolbar[collapsed="true"] + #nav-bar {
-      border-top-style: none !important;
-    }
+#nav-bar {
+  border-top: 1px solid @toolbarShadowColor@ !important;
+  box-shadow: 0 1px 0 @toolbarHighlight@ inset;
+}
+@media not all and (-moz-windows-compositor) {
+  #TabsToolbar[collapsed="true"] + #nav-bar {
+    border-top-style: none !important;
   }
 }
 
 #personal-bookmarks {
   min-height: 24px;
 }
 
 #print-preview-toolbar:not(:-moz-lwtheme) {
@@ -2000,27 +1995,34 @@ richlistitem[type~="action"][actiontype=
   }
 }
 
 /* Remove border between tab strip and navigation toolbar on Windows 10+ */
 @media not all and (-moz-os-version: windows-xp) {
   @media not all and (-moz-os-version: windows-vista) {
     @media not all and (-moz-os-version: windows-win7) {
       @media not all and (-moz-os-version: windows-win8) {
-        .tab-background-end[visuallyselected=true]::after,
-        .tab-background-start[visuallyselected=true]::after {
-          content: none;
-        }
-
-        #TabsToolbar {
-          --tab-stroke-background-size: 0 0;
-        }
-
-        :root {
-          --tab-toolbar-navbar-overlap: 0;
+        @media (-moz-windows-default-theme) {
+          .tab-background-end[visuallyselected=true]::after,
+          .tab-background-start[visuallyselected=true]::after {
+            content: none;
+          }
+
+          #TabsToolbar {
+            --tab-stroke-background-size: 0 0;
+          }
+
+          :root {
+            --tab-toolbar-navbar-overlap: 0;
+          }
+
+          #nav-bar {
+            border-top-style: none !important;
+            box-shadow: none;
+          }
         }
       }
     }
   }
 }
 
 /* Invert the unhovered close tab icons on bright-text tabs */
 @media not all and (min-resolution: 1.1dppx) {