use crate::prelude::build_plugin::*;
#[derive(Debug)]
pub(crate) struct CssPropertyPlugin;
impl Plugin for CssPropertyPlugin {
fn can_handle(&self, _context: ContextCanHandle) -> bool {
unreachable!();
}
fn handle(&self, context: &mut ContextHandle) {
match context.modifier {
Modifier::Builtin { .. } => unreachable!(),
Modifier::Arbitrary { value, .. } => {
for line in value.lines() {
if let Some((prop, value)) = line.split_once(':') {
context.buffer.line(format_args!("{prop}: {value};"));
}
}
}
}
}
}