Function is_matching_image

Source
pub fn is_matching_image(value: &str) -> bool
Expand description

Returns whether the CSS value has the <image> type.

ยงExample

use encre_css::utils::value_matchers::is_matching_image;
assert!(is_matching_image("linear-gradient(to_right,red,orange,yellow,green,blue,indigo,violet)"));
OSZAR »