function get_parent_rules(rule) {
	const rules = [];

	while (rule) {
		rules.push(rule);
		rule = rule.metadata.parent_rule;
	}

	return rules;
}
Returns all parent rules; root is last
@param {AST.CSS.Rule | null} rule