def resource.resolve
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-xml-doc@0.1.0.1/xml.bend as XML
2043# The properties of an element below a chain of raw ancestor attribute
2044# lists, outermost last.
2045def resource.resolve(chain: List<&2, List<&2, XML.Attr>>, own: List<&2, XML.Attr>) -> List<&2, XML.Attr>:
2046 match chain:
2047 case Nil{}: own
2048 case Con{as, rest}: props.fold(props.spec(), resource.resolve(rest, as), own)