Skip to content

Commit

Permalink
Remove reference to disallowing :not() within :not() (mdn#36460)
Browse files Browse the repository at this point in the history
This is no longer the case - The [current spec](https://drafts.csswg.org/selectors/#negation) does not mention any restriction like this.
  • Loading branch information
dshin-moz authored Oct 23, 2024
1 parent 42d7bb6 commit 0efc8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/css/_colon_not/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The `:not()` pseudo-class has a number of [quirks, tricks, and unexpected result

## Syntax

The `:not()` pseudo-class requires a [selector list](/en-US/docs/Web/CSS/CSS_selectors/Selector_structure#selector_list), a comma-separated list of one or more selectors, as its argument. The list must not contain another negation selector or a [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements), but any other simple, compound, and complex selectors are allowed.
The `:not()` pseudo-class requires a [selector list](/en-US/docs/Web/CSS/CSS_selectors/Selector_structure#selector_list), a comma-separated list of one or more selectors, as its argument. The list must not contain a [pseudo-element](/en-US/docs/Web/CSS/Pseudo-elements), but any other simple, compound, and complex selectors are allowed.

```css-nolint
:not(<complex-selector-list>) {
Expand Down

0 comments on commit 0efc8d5

Please sign in to comment.