is_matching_position

Function is_matching_position 

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

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

ยงExample

use encre_css::utils::value_matchers::is_matching_position;
assert!(is_matching_position("right"));
assert!(is_matching_position("12px"));
assert!(is_matching_position("42%"));