Menu Samaritan's Purse

FOCUS-WITHIN

The focus-within pseudo-class applies to any element for which the :focus pseudo class applies as well as to an element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching :focus.

SYNTAX

selector:focus-within {
    property: value;
}

EXAMPLES

INTERNAL

focus

EXTERNAL

World Wide Web Consortium (W3C)