def css.simple.pseudo.arg

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

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

188def css.simple.pseudo.arg(+scan: U.Scan, +key: String, +context: CSSContext, next: String -> Bool,
189  nested: String -> Bool) -> Bool:
190  U.Scan{h, t} = scan
191  U.prefix(t, ")") && U.branch(Bool, U.string.equal(key, "not"), _ => Bool.not(nested(h)), _ => css.pseudo(key, h, context)) && next(U.drop(t, ")"))

Uses (11)

Used by (1)