🏠 New in High Baseline Support: :read-only and :read-write

January 28, 2023

caniuse · mdn · [spec]([‘https://html.spec.whatwg.org/multipage/semantics-other.html#selector-read-only’, ‘https://drafts.csswg.org/selectors-4/#rw-pseudos’])

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.

Source features