Skip to content

Commit

Permalink
Remove prefixed :read-only selectors (mdn#31726)
Browse files Browse the repository at this point in the history
Firefox supports the unprefixed selector since version 78, released on June 2020.

By removing the prefixed selectors, we can in turn remove the :is() pseudo-class, which was needed for its forgiving selector list.
  • Loading branch information
vlakoff authored Jan 15, 2024
1 parent c3d3891 commit 4664d2c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions files/en-us/learn/forms/ui_pseudo-classes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,8 @@ A fragment of the HTML is as follows — note the readonly attribute:
If you try the live example, you'll see that the top set of form elements are not focusable, however, the values are submitted when the form is submitted. We've styled the form controls using the `:read-only` and `:read-write` pseudo-classes, like so:

```css
:is(
input:read-only,
input:-moz-read-only,
textarea:-moz-read-only,
textarea:read-only
) {
input:read-only,
textarea:read-only {
border: 0;
box-shadow: none;
background-color: white;
Expand Down

0 comments on commit 4664d2c

Please sign in to comment.