user-modify CSS property

Non-standard: This feature is not standardized. We do not recommend using non-standard features in production, as they have limited browser support, and may change or be removed. However, they can be a suitable alternative in specific cases where no standard option exists.

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The user-modify property has no effect in Firefox. It was originally planned to determine whether or not the content of an element can be edited by a user.

Warning: This property has been replaced by the contenteditable attribute.

Syntax

css
/* Keyword values */
user-modify: read-only;
user-modify: read-write;
user-modify: write-only;

/* Global values */
user-modify: inherit;
user-modify: initial;
user-modify: revert;
user-modify: unset;

The -moz-user-modify property is specified as one of the keyword values from the list below.

Values

read-only

Default value. Contents are read-only.

read-write

The user is able to read and write contents.

read-write-plaintext-only

Same as read-write, but rich text formatting will be lost.

write-only

The user is able to edit the content, but not to read it.

Formal syntax

user-modify = 
read-only |
read-write |
read-write-plaintext-only |
write-only

Examples

HTML

html
<div class="readwrite">The user is able to change this text.</div>

CSS

css
.readwrite {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
}

Specifications

Not part of any standard.

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
user-modify
Deprecated Non-standard
Chrome – Full support
Chrome 1 (Release date: 2008-12-11)
prefix
prefix Implemented with the vendor prefix: -webkit-
Edge – Full support
Edge 12 (Release date: 2015-07-29)
prefix
prefix Implemented with the vendor prefix: -webkit-
Firefox – Partial support
Firefox 1 – 131 (Release date: 2004-11-09)
prefix
footnote Removed in 132 and later
footnote Partial support
prefix Implemented with the vendor prefix: -moz-
footnote While the CSS property is parsed and accepted, it does not have any effect.
Opera – Full support
Opera 15 (Release date: 2013-07-02)
prefix
prefix Implemented with the vendor prefix: -webkit-
Safari – No support
Safari 2 – 2 (Release date: 2005-04-29)
prefix
prefix Implemented with the vendor prefix: -khtml-
Safari – Full support
Safari 3 (Release date: 2007-10-26)
prefix
prefix Implemented with the vendor prefix: -webkit-
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
prefix
prefix Implemented with the vendor prefix: -webkit-
Firefox for Android – Partial support
Firefox for Android 4 – 131 (Release date: 2011-03-29)
prefix
footnote Removed in 132 and later
footnote Partial support
prefix Implemented with the vendor prefix: -moz-
footnote While the CSS property is parsed and accepted, it does not have any effect.
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
prefix
prefix Implemented with the vendor prefix: -webkit-
Safari on iOS – Full support
Safari on iOS 5 (Release date: 2011-10-12)
prefix
prefix Implemented with the vendor prefix: -webkit-
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
prefix
prefix Implemented with the vendor prefix: -webkit-
WebView Android – Full support
WebView Android 37 (Release date: 2014-09-03)
prefix
prefix Implemented with the vendor prefix: -webkit-
WebView on iOS – Full support
WebView on iOS 5 (Release date: 2011-10-12)
prefix
prefix Implemented with the vendor prefix: -webkit-
read-write-plaintext-only
Deprecated Non-standard
Chrome – Full support
Chrome 1 (Release date: 2008-12-11)
footnote Full support
Edge – Full support
Edge 12 (Release date: 2015-07-29)
footnote Full support
Firefox – No support
Firefox
footnote No support
Opera – Full support
Opera 15 (Release date: 2013-07-02)
footnote Full support
Safari – Full support
Safari 3 (Release date: 2007-10-26)
footnote Full support
Chrome Android – Full support
Chrome Android 18 (Release date: 2012-06-27)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote No support
Opera Android – Full support
Opera Android 14 (Release date: 2013-05-21)
footnote Full support
Safari on iOS – Full support
Safari on iOS 5 (Release date: 2011-10-12)
footnote Full support
Samsung Internet – Full support
Samsung Internet 1 (Release date: 2013-04-27)
footnote Full support
WebView Android – Full support
WebView Android 37 (Release date: 2014-09-03)
footnote Full support
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.
Requires a vendor prefix or different name for use.
Has more compatibility info.

See also