matchedPseudoRules method

List<CSSStyleRule> matchedPseudoRules(
  1. RuleSet ruleSet,
  2. Element element
)

Implementation

List<CSSStyleRule> matchedPseudoRules(RuleSet ruleSet, Element element) {
  if (ruleSet.pseudoRules.isEmpty) {
    return [];
  }
  List<CSSRule> rules = _collectMatchingRulesForList(ruleSet.pseudoRules, element);
  return rules.map((e) => e as CSSStyleRule).toList();
}