Skip to main content

parse_media_query_list

Function parse_media_query_list 

Source
pub fn parse_media_query_list(
    input: &str,
) -> Vec<Result<MediaQuery, ParseError>>
Expand description

Parses input as a <media-query-list>: a comma-separated list of component values (spec §3), with each entry parsed independently as a <media-query>. Returns one Result per entry rather than a single MediaQueryList/error, since a single invalid entry must not invalidate the rest of the list (see the module doc comment).