def css.attr.compare
import gralha-css-style@0.1.0.1/css.bend as Cssimport 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)