use super::*;
pub(crate) fn c_example_motion_policy() -> Css {
let style: &str = EXAMPLE_MOTION_POLICY_STYLE;
let rules: Vec<PseudoRule> = EXAMPLE_MOTION_POLICY_RULES
.iter()
.map(|(selector, style): &(&str, &str)| {
PseudoRule::new((*selector).to_string(), (*style).to_string())
})
.collect();
let class: Css = Css::new(
EXAMPLE_MOTION_POLICY_CLASS.to_string(),
style.to_string(),
rules,
Vec::new(),
);
class.inject_style();
class
}