Path: blob/main/files/en-us/web/css/-moz-user-input/index.md
6532 views
------{{CSSRef}}{{Non-standard_Header}}{{Deprecated_Header}}
In Mozilla applications, -moz-user-input determines if an element will accept user input.
For elements that normally take user input, such as a {{HTMLElement("textarea")}}, the initial value of -moz-user-input is enabled.
Note:
-moz-user-inputwas one of the proposals leading to the proposed CSS 3 {{cssxref("user-input")}} property, which has not yet reached Candidate Recommendation (call for implementations). A similar property,user-focus, was proposed in early drafts of a predecessor of the User Interface for CSS3 specification, but was rejected by the working group.
Syntax
Values
none{{Deprecated_Inline}} {{Non-standard_Inline}}: The element does not respond to user input, and it does not become {{CSSxRef(":active")}}.
enabled{{Deprecated_Inline}} {{Non-standard_Inline}}: The element accepts user input. For textboxes, this is the default behavior. Please note that this value is no longer supported in Firefox 60 onwards (Firefox bug 1405087).
disabled{{Deprecated_Inline}} {{Non-standard_Inline}}: The element does not accept user input. However, this is not the same as setting
disabledto true, in that the element is drawn normally. Please note that this value is no longer supported in Firefox 60 onwards (Firefox bug 1405087).
Formal definition
{{CSSInfo}}
Formal syntax
Examples
Disabling user input for an element
Specifications
Not part of any standard.
Browser compatibility
{{Compat}}
See also
{{CSSxRef("-moz-user-focus")}}
{{CSSxRef("-moz-user-modify")}}
{{CSSxRef("-moz-user-select")}}