@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-icon-image:hover,
.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-icon:hover .tab-icon-image {
list-style-image: url(chrome://global/skin/icons/close.png) !important;
-moz-image-region: rect(0,14px,16px,0px) !important;
margin-top: 2px !important; margin-bottom: -1px !important;
-moz-binding: url(chrome://browser/content/tabbrowser.xml#tabbrowser-close-tab-button) !important;
}

.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-icon {
-moz-binding: url(chrome://browser/content/tabbrowser.xml#tabbrowser-close-tab-button) !important;
}

.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-icon-image:active,
.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-icon:active .tab-icon-image{
-moz-image-region: rect(0,42px,16px,28px) !important;
}

.tabbrowser-tab:not([faviconized="true"]):not([pinned="true"]) .tab-close-button {
visibility: hidden !important; max-width: 1px !important; min-width: 1px !important;
}