Type Definition procss::ast::TreeRuleset

source ·
pub type TreeRuleset<'a> = Ruleset<'a, TreeRule<'a>>;
Expand description

A nested recursive block, ala popular CSS tools and the CSS nesting proposal.

div {
    color: green;
    &#my_elem {
        color: red;
    }
    .sub_elem {
        color: purple;
    }
}

Implementations

Flatten into a FlatRuleset, replacing this struct’s inner TreeRule recursive type with a regular Rule, removing arbitrary nesting of SelectorRuleset variants.