Bug 455990 - Close button on last open tab should be hidden. r=gavin
authorDão Gottwald <dao@mozilla.com>
Mon, 29 Sep 2008 23:26:01 +0200
changeset 19882 ec3a3468d1b9bb65c6230519dc8867f873c72221
parent 19881 8858457b51cec34d1b43b066876c07710b5175c1
child 19883 f3f7dad6256d1325539a3769d7edc3fbade4ac21
push id2515
push userdgottwald@mozilla.com
push dateMon, 29 Sep 2008 21:26:13 +0000
treeherdermozilla-central@ec3a3468d1b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs455990
milestone1.9.1b1pre
Bug 455990 - Close button on last open tab should be hidden. r=gavin
browser/base/content/tabbrowser.css
--- a/browser/base/content/tabbrowser.css
+++ b/browser/base/content/tabbrowser.css
@@ -19,15 +19,15 @@
 .tab-close-button, .tabs-closebutton {
   -moz-binding: url("chrome://browser/content/tabbrowser.xml#tabbrowser-close-tab-button");
 }
 
 .tab-close-button {
   display: none;
 }
 
-.tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"] > .tab-close-button {
+.tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"]:not(:only-child) > .tab-close-button {
   display: -moz-box;
 }
 
-.tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab > .tab-close-button {
+.tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab:not(:only-child) > .tab-close-button {
   display: -moz-box;
 }