Applies one or more styles to the element that is the only child element of its parent.
A CSS simple selector.
- Selectors Level 3, Section 184.108.40.206
The :only-child pseudo-class is a structural pseudo-class. Structural pseudo-classes enable selection based on extra information in the document tree that can't be selected using simple selectors or combinators.