:read-only

The :read-only pseudo-class applies to form fields that have the readonly attribute set. Such a field cannot be modified, while it receives focus, and the data in such a field can be selected and copied.

Syntax



input:read-only {
  property: value;
}