shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- stylesheet*-CSSStyleSheet
The stylesheet from which to get the CSSRules
- recursivetrueBoolean
Specify if you want to get rules from imported css or not
Return
- -CSSRule[]
Array of CSSRules
Example
import { getCssRulesFromStylesheet } from '@blackbyte/sugar/dom';
getCssRulesFromStylesheet(myStylesheet);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space