def css.attr.compare

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

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

115def css.attr.compare(scan: U.Scan, +actual: String, +op: String) -> Bool:
116  U.Scan{expected, tail} = scan
117  +ignoreCase = U.string.equal(css.lower(U.trim.both(tail)), "i")
118  +text = expected
119  css.attr.value(U.choose(String, ignoreCase, css.lower(actual), actual), U.choose(String, ignoreCase, css.lower(text), text), op)

Uses (8)

Used by (1)