理由はわかりませんが、Firefox では入力を入力するとテキストが非表示になります (ただし、入力をクリックするとテキストが表示されます)。それは何も変わりません。
これは私のHTMLです
<div id="searchBar" class="{% if query %}cancelable{% endif %}">
<input class="searchInput" type="text" autocomplete="off"
value="{{ query|default_if_none('')|escape }}"
name="query" id="keywords"/>
<input type="submit" value="" name="search" class="searchBtn" style="display: none;"/>
</div>
これは私のCSSです
#searchBar input.searchInput {
z-index: 99;
font-size: 22px;
height: 26px;
line-height: 26px;
font-weight: 300;
background: #FFF;
border: 0px;
color: #484848;
font-family: Arial;
width: 100%;
margin: 8px 0 6px 0;
padding: 0 80px 0 8px;
top: 0;
left: 0;
-webkit-box-shadow: 0 0 0 #929292;
-moz-box-shadow: 0 0 0 #929292;
box-shadow: 0 0 0 #929292;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
#searchBar input.searchInput:focus {
margin: 0px 0 0px 0;
padding: 20px 40px 18px 8px;
border: solid 1px rgba(82, 168, 236, 0.8);
-webkit-box-shadow: 0 0 0 rgba(82, 168, 236, 0.8);
-moz-box-shadow: 0 0 0 rgba(82, 168, 236, 0.8);
box-shadow: 0 0 0 rgba(82, 168, 236, 0.8);
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-webkit-transition:border linear .2s, box-shadow linear .2s;
-moz-transition:border linear .2s, box-shadow linear .2s;
-o-transition:border linear .2s, box-shadow linear .2s;
transition:border linear .2s, box-shadow
}
PS : #searchBar の z-index は 1000 です。10 に切り替えようとしましたが、Firefox でも同じ動作をしています。