Skip to main content

sibling_after

Function sibling_after 

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

Creates selector that observes if the given pseudo-class is active on a next sibling 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 next sibling observer