def css.rules.head
gralha-css-style@0.1.0.1 · css.bend:365
import gralha-css-style@0.1.0.1/css.bend as Css
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
365def css.rules.head(scan: U.Scan, w: F32, h: F32,
366 next: String -> List<&2, CSSRule>, nested: String -> List<&2, CSSRule>) -> List<&2, CSSRule>:
367 U.Scan{head, tail} = scan
368 +rest = tail
369 css.rules.body(head, U.choose(U.Scan, U.prefix(rest, ";"), U.Scan{"", "}" ++ U.drop(rest, ";")}, css.scan(U.drop(rest, "{"), 125)), w, h, next, nested)
370
371@unsafe