In Windows this does not occur, at least not in Firefox, I am almost certain that this is a situation that occurs on Ubuntu or in the specific graphical environment, because the controls rendered in the browser are "partially" generated from the "operating system" which probably will not allow a total customization.
As an example of the other question in Windows, to test click on:
.form-control
{
background-color: #fff;
border-radius: 15px;
border: 2px solid #ccc;
font-size: 16px;
margin-top: 5px;
min-height: 57px;
outline: none;
padding: 15px 10px;
transition: border-color .1s linear;
width: 100%;
box-sizing: border-box;
}
select.form-control {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none; /*provavelmente será implementado no futuro*/
background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzA2cHgiIGhlaWdodD0iMzA2cHgiIHZpZXdCb3g9IjAgMCAzMDYgMzA2IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDYgMzA2OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PGc+PHBvbHlnb24gcG9pbnRzPSIyNzAuMyw1OC42NSAxNTMsMTc1Ljk1IDM1LjcsNTguNjUgMCw5NC4zNSAxNTMsMjQ3LjM1IDMwNiw5NC4zNSIvPjwvZz48L3N2Zz4=) center right no-repeat;
background-size: 8px 8px;
}
<select class="form-control">
<option>Selecione...</option>
<option>Masculino</option>
<option>Feminino</option>
</select>
The result in Firefox on Windows was:
Note: In Windows the only time that was shown the dotted was when I used the Tab to navigate
Techniques to remove "Outline" in Firefox
Note: It is very likely that these techniques work better when applied to links like: <a href="...">foo bar</a>
You can experience the:
select.form-control, select.form-control:focus {
outline: 0;
}
Click below to test:
select.form-control
{
background-color: #fff;
border: 2px solid #ccc;
padding: 15px 10px;
width: 100%;
}
select.form-control, select.form-control:focus {
outline: 0;
}
<select class="form-control">
<option>Selecione...</option>
<option>Masculino</option>
<option>Feminino</option>
</select>
Or moz-focusring
with "some" effect:
select.form-control:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
Click below to test:
select.form-control:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
select.form-control
{
background-color: #fff;
border: 2px solid #ccc;
padding: 15px 10px;
width: 100%;
}
<select class="form-control">
<option>Selecione...</option>
<option>Masculino</option>
<option>Feminino</option>
</select>
Or the selector -moz-focus-inner
, this was what worked best, at least with navigation via Tab had the desired effect, however Debian with Lxde did not work:
select.form-control::-moz-focus-inner {
border: 0;
}
Click below to test:
select.form-control::-moz-focus-inner {
border: 0;
}
select.form-control
{
background-color: #fff;
border: 2px solid #ccc;
padding: 15px 10px;
width: 100%;
}
<select class="form-control">
<option>Selecione...</option>
<option>Masculino</option>
<option>Feminino</option>
</select>
Concluding
In other words, I do not believe that there is no guaranteed technique, because it depends on the operating system, same techniques as moz-focusring
may not achieve the desired result or cause another effect on different operating systems, as it is not possible to customize completely.
Take into account that this stippling can even help the user and does not bother so much.
Binds to the hash: https://i.stack.Imgur.com/Jfeub.png
– Wallace Maxters
@Wallacemaxters edited the answer
– Guilherme Nascimento
@Wallacemaxters edited the answer again, test all examples on "Techniques to remove "Outline" in Firefox", I believe that the
select.form-control::-moz-focus-inner {
 border: 0;
}
will be the one that will get closer.– Guilherme Nascimento
Cool a free downvote, being the only technical response indeed. Whoever it is could explain where I went wrong or what I did wrong. So I can get better.
– Guilherme Nascimento
Well, I thought... Did you bug your cell phone?
– Wallace Maxters
@Wallacemaxters actually I suspect who is, unfortunately is a user who does not know how to take constructive criticism and leaves giving votes for empathy and dislike
– Guilherme Nascimento
Test: http://jsfiddle.net/4np7vroh/1/
– Guilherme Nascimento
Giving the same problem, hahahahahaha... it seems that it is something of the same operating system!
– Wallace Maxters
@Wallacemaxters yes, in Debian also occurs, only the hack with text-shadow "solved", as I described in the answer no technique is 100% guaranteed. But I’m still doing tests and reading a few things in the Mozilla community
– Guilherme Nascimento
@Wallacemaxters > Take into account that this punching can even help the user and does not bother you so much, since it only occurs at the time of focus.
– Guilherme Nascimento