def css.apply.rules

gralha-css-style@0.1.0.1 · css.bend:428

import gralha-css-style@0.1.0.1/css.bend as Css
import Base

428def css.apply.rules(rs: List<&2, CSSRule>, +context: CSSContext, choices: List<&2, CSSChoice>) -> List<&2, CSSChoice>:
429  match rs:
430    case Nil{}: choices
431    case Con{CSSRule{sel, ds}, rest}:
432      css.apply.rules(rest, context, css.rule.matched(css.select(sel, context, CSSMatch{False{}, 0}), ds, choices))

Uses (8)

Used by (1)