Bug 1501161 - Set transparent titlebar background for normal sizemode only, r=dao a=jcristau
authorMartin Stransky <stransky@redhat.com>
Tue, 06 Nov 2018 20:47:47 +0000
changeset 498550 13e3f37faf8c7a013d463e8e4240220a78d6899a
parent 498549 d810f485f1aa9f2a318c6eb0ee02e730aad573e2
child 498551 a867939dde09193fec742fa5db528993b4d1e5b3
push id10216
push userebalazs@mozilla.com
push dateFri, 16 Nov 2018 15:35:00 +0000
treeherdermozilla-beta@8d14223f8f75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, jcristau
bugs1501161
milestone64.0
Bug 1501161 - Set transparent titlebar background for normal sizemode only, r=dao a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D11103
browser/themes/linux/browser.css
--- a/browser/themes/linux/browser.css
+++ b/browser/themes/linux/browser.css
@@ -638,17 +638,17 @@ notification[value="translation"] menuli
 /* We draw to titlebar when Gkt+ CSD is available */
 @media (-moz-gtk-csd-available) {
   /* Some Gtk+ themes use non-rectangular toplevel windows. To fully support
    * such themes we need to make toplevel window transparent.
    * It may cause performanance issues so let's put it under a preference
    * and enable it for desktop environment which do that by default.
    * See nsWindow::TopLevelWindowUseARGBVisual() for details. */
   @media (-moz-gtk-csd-transparent-background) {
-    :root[tabsintitlebar]:not(:-moz-lwtheme) {
+    :root[tabsintitlebar][sizemode="normal"]:not(:-moz-lwtheme) {
       background-color: transparent;
       -moz-appearance: none;
     }
   }
 
   :root[tabsintitlebar] > #titlebar:-moz-lwtheme {
     visibility: hidden;
   }