Skip to main content

descendant

Function descendant 

Source
pub fn descendant(
    pseudo: &str,
    options: Option<&StyleXStateOptions>,
) -> Result<String, String>
Expand description

Creates selector that observes if the given pseudo-class is active on a descendant with the “defaultMarker”

§Arguments

  • pseudo - The pseudo selector (e.g., ‘:hover’, ‘:focus’)
  • options - Either a custom marker string or StyleXStateOptions reference

§Returns

A :has() clause for the descendant observer