Web features explorer

:read-only and :read-write

Widely available
Tags: css Groups: HTML > Forms

The :read-only and :read-write CSS pseudo-classes match elements that are read-only or read-write, respectively. For example, :read-only matches <input> and <textarea> elements with the readonly attribute. To learn more, see :read-only, :read-write at MDN.

Compatibility (view on caniuse.com)