Bug 1698318 - Restrict a CSS hack to the windows native theme. r=mstange

Noticed this while working on bug 1698043.

Differential Revision: https://phabricator.services.mozilla.com/D108339
This commit is contained in:
Emilio Cobos Álvarez 2021-03-15 21:05:50 +00:00
Родитель bc46dae04f
Коммит 5e0e37888a
1 изменённых файлов: 10 добавлений и 8 удалений

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

@ -903,14 +903,6 @@ input[type=number]::-moz-number-spin-box {
display: flex;
flex-direction: column;
width: max-content;
%ifdef XP_WIN
/* The Window's Theme's spin buttons have a very narrow minimum width, so
* make it something reasonable:
*
* TODO(emilio): Make this affect only when the non-native theme is disabled.
*/
width: 16px;
%endif
/* If the spin-box has auto height, it ends up enlarging the default height
* of the control, so we limit it to 1em here. The height doesn't affect
* the rendering of the spinner-buttons; it's only for layout purposes.
@ -925,6 +917,16 @@ input[type=number]::-moz-number-spin-box {
justify-content: center;
}
%ifdef XP_WIN
@media not (-moz-non-native-content-theme) {
input[type=number]::-moz-number-spin-box {
/* The Window's Theme's spin buttons have a very narrow minimum width, so
* make it something reasonable. */
width: 16px;
}
}
%endif
input[type=number]::-moz-number-spin-up {
writing-mode: horizontal-tb;
appearance: auto;