Bug 1439834 - Make #TabsToolbar transparent when styled #titlebar (-moz-window-titlebar) should be shown, r=dao
authorMartin Stransky <stransky@redhat.com>
Wed, 28 Feb 2018 14:34:39 +0100
changeset 407817 f36db4aef5c3ad17ab75687dfcd529996ef25e0a
parent 407816 422c2b84ac8cdba7d003f82dd477e6727f8c35af
child 407818 8d422e20d52a14ace7233842e3bad1e026d30c3d
push id61061
push userstransky@redhat.com
push dateTue, 13 Mar 2018 15:28:32 +0000
treeherderautoland@f36db4aef5c3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1439834
milestone61.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 1439834 - Make #TabsToolbar transparent when styled #titlebar (-moz-window-titlebar) should be shown, r=dao When #titlebar (-moz-window-titlebar) should be rendered (disabled system headerbar rendering and disabled menubar) we also need to make #TabsToolbar transparent because #titlebar is bellow it. MozReview-Commit-ID: AruTMVyC8WD
browser/themes/linux/browser.css
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -666,16 +666,24 @@ notification[value="translation"] menuli
   /* Private browsing and accessibility indicators */
   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .private-browsing-indicator,
   :root[sizemode="normal"][chromehidden~="menubar"] #TabsToolbar > .accessibility-indicator,
   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .private-browsing-indicator,
   :root[sizemode="normal"] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar > .accessibility-indicator {
     padding-top: calc(-1 * var(--space-above-tabbar));
   }
 
+  /* Make #TabsToolbar transparent as we style underlying #titlebar with
+   * -moz-window-titlebar (Gtk+ theme).
+   */
+  :root[tabsintitlebar] #TabsToolbar,
+  :root[tabsintitlebar] #toolbar-menubar {
+    -moz-appearance: none;
+  }
+
   /* The button box must appear on top of the navigator-toolbox in order for
    * click and hover mouse events to work properly for the button in the restored
    * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
    * can swallow those events.
    */
   #titlebar-buttonbox {
     z-index: 1;
     -moz-box-align: center;