commit 3691debaa14311c09ee5f6c8ffe539ffe69c57bf
parent bf0411d0a56a7d029f475cc6597ee8bd00453076
Author: Mark Striemer <mstriemer@mozilla.com>
Date: Mon, 6 Oct 2025 16:53:29 +0000
Bug 1992466 - Keep moz-select block without a label r=desktop-theme-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D267460
Diffstat:
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/toolkit/content/widgets/moz-input-common.css b/toolkit/content/widgets/moz-input-common.css
@@ -14,13 +14,8 @@
--input-margin-inline-start-adjust: calc(-1 * var(--input-space-offset));
}
- :host(:not([hidden])) {
- display: block;
- }
-
:host(:not(:state(has-label))) {
--input-space-offset: var(--input-width);
- display: inline-block;
}
:host([inputlayout="block"]) {
@@ -32,6 +27,14 @@
--input-margin-block-adjust: 0;
}
+ :host(:not([hidden])) {
+ display: block;
+ }
+
+ :host(:not([hidden], :state(has-label), [inputlayout="block"])) {
+ display: inline-block;
+ }
+
@media (forced-colors) {
:host(:state(disabled)) {
color: GrayText;