getCssRulesFromStylesheet

Type:Function
Status:beta
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style

Get all the CSSRules of the passed stylesheet

Params

  1. stylesheet*-CSSStyleSheet

    The stylesheet from which to get the CSSRules

  2. recursivetrueBoolean

    Specify if you want to get rules from imported css or not

Return

  1. -CSSRule[]

    Array of CSSRules

Example

import { getCssRulesFromStylesheet } from '@blackbyte/sugar/dom';
getCssRulesFromStylesheet(myStylesheet);

Todo

  • testsnormal