Skip to content

Commit

Permalink
Remove prefixed :read-only selectors (#705)
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 a519aaa commit b9cda10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/forms/pseudo-classes/readonly-confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@
margin: 20px auto;
}

: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;
}

:is(textarea:-moz-read-write, textarea:read-write) {
textarea:read-write {
box-shadow: inset 1px 1px 3px #ccc;
border-radius: 5px;
}
Expand Down

0 comments on commit b9cda10

Please sign in to comment.