def css.simple.attr

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

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
import gralha-xml-doc@0.1.0.1/xml.bend as XML

183def css.simple.attr(+scan: U.Scan, +context: CSSContext, next: String -> Bool) -> Bool:
184  U.Scan{h, t} = scan
185  CSSContext{XML.Element{n, as, kids, txt}, parents, previous, index, count} = context
186  U.prefix(t, "]") && css.attr.test(css.ident(U.trim(h), ""), as) && next(U.drop(t, "]"))

Uses (11)

Used by (1)