getMatchedCssRules 方法

  1. @JSName('getMatchedCSSRules')
  2. @Returns('_CssRuleList')
  3. @Creates('_CssRuleList')
List<CssRule> getMatchedCssRules(
  1. Element? element,
  2. String? pseudoElement
)

返回应用于元素伪元素的所有的CSS规则。

实现

@JSName('getMatchedCSSRules')
/**
 * Returns all CSS rules that apply to the element's pseudo-element.
 */
@Returns('_CssRuleList')
@Creates('_CssRuleList')
List<CssRule> getMatchedCssRules(Element? element, String? pseudoElement)
    native;