Bug 986920 - New tab button has equal z-index to non-selected tabs in Windows Classic mode. r=Gijs, a=sylvestre
authorMike Conley <mconley@mozilla.com>
Tue, 25 Mar 2014 11:40:00 -0400
changeset 192433 9fc38ffaff75274ffaaf34918b925a52455a31a7
parent 192432 3a0bdf9fa94fcc9c13b1b24af59a03c7074ee9ce
child 192434 de453d0733ed49ec592ab251973f478c75839ff7
push id474
push userasasaki@mozilla.com
push dateMon, 02 Jun 2014 21:01:02 +0000
treeherdermozilla-release@967f4cf1b31c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, sylvestre
bugs986920
milestone30.0a2
Bug 986920 - New tab button has equal z-index to non-selected tabs in Windows Classic mode. r=Gijs, a=sylvestre
browser/themes/windows/browser.css
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -118,17 +118,26 @@
 /**
  * In the classic themes, the titlebar has a horizontal gradient, which is
  * problematic for reading the text of background tabs when they're in the
  * titlebar. We side-step this issue by layering our own background underneath
  * the tabs. Unfortunately, this requires a bunch of positioning in order to get
  * text and icons to not appear fuzzy.
  */
 @media (-moz-windows-classic) {
-  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-tab:not([selected=true]),
+  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-tab[selected=true] {
+    position: relative;
+    z-index: 3;
+  }
+
+  #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-tab:not([selected=true]) {
+    position: relative;
+    z-index: 2;
+  }
+
   #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabs-newtab-button {
     position: relative;
     z-index: 1;
   }
 
   #main-window[tabsintitlebar] #TabsToolbar:not(:-moz-lwtheme) {
     background-image: none;
     position: relative;