pseudo-class

:read-write — CSS reference

Matches elements editable by the user under document-language rules. It includes editable text fields and contenteditable elements.

Formal Syntax & Structure

css syntaxcss
:read-write

Working Example

Example Snippetcss
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Selector lab</title><style>:where(.sample) { color: rgb(32, 32, 32); }input:read-write { color: rgb(0, 96, 80); }</style></head><body><label>A <input id="a" class="sample" value="ok"></label><label>B <input id="b" class="sample" readonly value="ok"></label></body></html>
CSS Reference