-
Notifications
You must be signed in to change notification settings - Fork 6
List of supported CSS pseudo‐classes
Mykola Humanov edited this page Nov 1, 2024
·
4 revisions
Implementation with selectors
:
:empty
:first-child
:last-child
:has
:is
:where
:last-of-type
:not
:only-child
:only-of-type
:nth-child
:nth-last-child
Implementation with dom_query
:
:any-link
:link
:has-text
:contains
:has-text
– checks whether one of children nodes has specific text.
:contains
– checks whether the combined text of all child nodes contains specific text.
:only-text
- checks whether the element contains only a single text node, with no other child nodes.