The :only-of-type pseudo-class applies to a child element of the specified type only if it is the only one of the parent.
:only-of-type
element:only-of-type { property: value; }