Skip to main content

top_level_declarations

Function top_level_declarations 

Source
pub fn top_level_declarations(body: &str) -> Vec<(String, String)>
Expand description

Extract direct declarations from a rule body, excluding declarations in nested style rules and at-rules. This is deliberately separate from the counter above because diagnostics need the property/value text as well.