Bug 1677705 - Disable outlines for inputs etc which have their own focus styles. r=dao

These didn't match `:-moz-focusring` by default before, but now they do
and we get an extra outline much more often, not just when navigating
with the keyboard.

While at it simplify the ::-moz-focus-inner disabling as well.

Differential Revision: https://phabricator.services.mozilla.com/D97284
This commit is contained in:
Emilio Cobos Álvarez 2020-11-17 11:24:48 +00:00
Родитель 3442c30a38
Коммит d967bc0301
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -254,9 +254,7 @@ html|button {
margin-inline: 4px;
}
html|button::-moz-focus-inner,
html|select::-moz-focus-inner,
html|input[type="color"]::-moz-focus-inner {
::-moz-focus-inner {
border: none;
}
@ -502,6 +500,7 @@ xul|search-textbox[focused] {
border-color: var(--in-content-border-active);
box-shadow: 0 0 0 1px var(--in-content-border-active),
0 0 0 4px var(--in-content-border-active-shadow);
outline: none;
}
html|input[type="email"]:-moz-ui-invalid,