Bug 1378330 - Fix the disappeared submit button in search field on Win & Linux for beta. r=dao a=jcristau
authorRicky Chien [:rickychien] <rchien@mozilla.com>
Wed, 12 Jul 2017 11:58:47 +0200
changeset 411906 3e01f819ec53b907d3b870ec6946a5d2f51b3b20
parent 411905 b4344f79a38a8638dcc21a65c7e03ef38a94c595
child 411907 a56d17a4247a122aa7ae45f4137ae41f0aadf6e1
push id7498
push usercbook@mozilla.com
push dateWed, 12 Jul 2017 10:00:33 +0000
treeherdermozilla-beta@a56d17a4247a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao, jcristau
bugs1378330
milestone55.0
Bug 1378330 - Fix the disappeared submit button in search field on Win & Linux for beta. r=dao a=jcristau
toolkit/themes/shared/in-content/common.inc.css
--- a/toolkit/themes/shared/in-content/common.inc.css
+++ b/toolkit/themes/shared/in-content/common.inc.css
@@ -470,26 +470,26 @@ xul|textbox {
 /* Create a separate rule to unset these styles on .tree-input instead of
    using :not(.tree-input) so the selector specifity doesn't change. */
 xul|textbox.tree-input {
   min-height: unset;
   padding-right: unset;
   padding-left: unset;
 }
 
-xul|textbox[type="search"] > .textbox-input-box {
+xul|textbox[type="search"]:not([searchbutton]) > .textbox-input-box {
   background: url(chrome://global/skin/icons/search-textbox.svg) no-repeat center left;
   padding-inline-start: 16px;
 }
 
-xul|textbox[type="search"] > .textbox-input-box:-moz-locale-dir(rtl) {
+xul|textbox[type="search"]:not([searchbutton]) > .textbox-input-box:-moz-locale-dir(rtl) {
   background-position-x: right;
 }
 
-xul|textbox[type="search"] > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
+xul|textbox[type="search"]:not([searchbutton]) > .textbox-input-box > .textbox-search-icons > .textbox-search-icon {
   visibility: hidden;
 }
 
 html|input[type="email"],
 html|input[type="tel"],
 html|input[type="text"],
 html|textarea {
   font-family: inherit;