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

July 28, 2020

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