1
edit
Changes
→Summary
== Summary ==
'''-moz-user-modify''' is a Mozilla property extension to CSS that is used to determine whether or not an element may be modified, and, in certain circumstances, whether or not the content itself is viewable.
== Syntax ==
<pre>
TARGET_ELEMENT{-moz-user-modify: inherit;}TARGET_ELEMENT{-moz-user-modify: read-only;}TARGET_ELEMENT{-moz-user-modify: read-write;}TARGET_ELEMENT{-moz-user-modify: write-only;}
</pre>
== Legal Values ==
<table border="1" cellpadding="3">
<tr><th>Value</th><th>Description</th></tr>
<tr><td>inherit</td><td>Inherit the value from parent element.</td></tr>
<tr><td>read-only</td><td>Allow for viewing, selecting and copying the element contents.'''This has been tested in FF2.0 and doesn't work.'''</td></tr>
<tr><td>read-write</td><td>Allow for viewing, selecting, copying and editing the element contents.</td></tr>
<tr><td>write-only</td><td>Allow for selecting and editing the element contents.</td></tr>
== Usage Examples ==
This sample code provides a textbox which allows the user to type and modify content, but does not allow for the cut, copy and paste facilities: <pre>asdf <form method="post" action="foo"> </prespan style="-moz-user-modify:write-only;"> <preinput type="text" name="tb1" value="qwerty" />asdf </prespan><pre/form>asdf </pre>
== Notes ==
This property is similar to the [http://www.w3.org/TR/1999/WD-css3-userint-19990916#user-modify user-modify] property of CSS3.
== Specification Conformance ==