Skip to content

Commit

Permalink
deprecate 4 year old name and note. (#20908)
Browse files Browse the repository at this point in the history
Removed the old names from the title, and moved the note from the top to after the description. I am fine removing the note altogether, but it might not be time yet.
  • Loading branch information
estelle authored Sep 20, 2022
1 parent 309b7e3 commit fc75a30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/en-us/web/css/_colon_is/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: ':is() (:matches(), :any())'
title: ':is()'
slug: Web/CSS/:is
tags:
- ':is'
Expand All @@ -14,10 +14,10 @@ browser-compat: css.selectors.is

{{CSSRef}}

> **Note:** `:matches()` was renamed to `:is()` in [CSSWG issue #3258](https://github.com/w3c/csswg-drafts/issues/3258).
The **`:is()`** [CSS](/en-US/docs/Web/CSS) [pseudo-class](/en-US/docs/Web/CSS/Pseudo-classes) function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form.

> **Note:** Originally named `:matches()` (and `:any()`), this selector was renamed to `:is()` in [CSSWG issue #3258](https://github.com/w3c/csswg-drafts/issues/3258).
{{EmbedInteractiveExample("pages/tabbed/pseudo-class-is.html", "tabbed-shorter")}}

Pseudo-elements are not valid in the selector list for `:is()`.
Expand Down

0 comments on commit fc75a30

Please sign in to comment.