mapmaker.sources.svg.styling module
- class mapmaker.sources.svg.styling.StyleMatcher(style_element)[source]
Bases:
Matcher
Parse CSS and add rules to the matcher.
- match(element)[source]
Match selectors against the given element.
- Parameters:
element – An
ElementWrapper
.- Returns:
A list of the payload objects associated to selectors that match element, in order of lowest to highest
compiler.CompiledSelector
specificity and in order of addition withadd_selector()
among selectors of equal specificity.