shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
getCssDeclarations
Type:Function
Status:beta
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.style
Get all the CSSRules of the passed type
Params
- typeName”style”string
CSSRule type to search for, valid types: unknown, style, charset, import, media, fontface, page, keyframes, keyframe, namespace, counter, supports, document, fontfeature, viewport, region
- rules[]array
Array of CSSRules to search
- predecate”Boolean”function
Predecate function to filter matches
Return
- -array
Array of matching CSSRules
Example
import { getCssDeclarations } from '@blackbyte/sugar/dom';
getCssDeclarations('style', [myCoolCssRules]);Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space