Skip to main content

match_simple_selector

Function match_simple_selector 

Source
pub fn match_simple_selector(arena: &AstArena, tokens: &mut Vec<u32>) -> bool
Expand description

match a selector made of simple selectors (see [is_simple_selector_token]), separated by whitespace (the descendant combinator) and by commas: .a:hover, .a .b, .a, #b. such a selector is valid: the whitespace around the commas is removed, the tokens are the tokens produced by match_selector_syntax. the tokens of another selector are not changed. returns true if the selector is made of simple selectors