is_matching_gradient

Function is_matching_gradient 

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

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

ยงExample

use encre_css::utils::value_matchers::is_matching_gradient;
assert!(is_matching_gradient("linear-gradient(45deg, blue, red);"));