Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ Pseudo-elements do not exist independently. The element of which a pseudo-elemen

A pseudo-element can be selected based on the current state of the originating element. For example, `p:hover::first-line` selects the first line (pseudo-element) of a paragraph when the paragraph itself is being hovered (pseudo-class).

> [!NOTE]
> When a [selector list](/en-US/docs/Web/CSS/Guides/Selectors/Selector_structure#selector_list) contains an invalid selector, the entire style block is ignored.
The specifications allow for some pseudo-elements to be selected based on the current state of the originating element, in which case the pseudo-element is represented only when it is in the corresponding state. For example, `::picker(select):hover` selects the currently hovered descendant of a customizable {{htmlelement("select")}} element, not including the first {{htmlelement("button")}} child, which is not selected by the {{cssxref("::picker()")}} pseudo-element. Note, however, that when a [selector list](/en-US/docs/Web/CSS/Guides/Selectors/Selector_structure#selector_list) contains an invalid selector, the entire style block is ignored, so make sure the state you're including is supported on the psuedo-element to which it is attached.

## Typographic pseudo-elements

Expand Down
Loading