(require("walkRules"))(rules, callback, testopt)
Recursively walk all "normal" rules, i.e. rules with selectors
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rules |
Object | Array | AST or array of CSS rules |
|||||||||||||
callback |
function | Function to be executed for each matching rule. Rule passed as the only argument. |
|||||||||||||
test |
Object |
<optional> |
Properties
|
- Source:
Returns:
The return value of the callback (which also breaks the loop) or undefined.