CSState
Simple dynamic CSS style handling tool.
Installation
npm i --save-dev csstate
Usage
var CSSTate = ; var cst = ; cst; cst;
Check out How to test DOM elements with CSSTate tutorial.
Features
Create/modify rules
rule(selector, property, value)
rule(object)
Remove rules
remove(selector)
remove(selector, proprery)
remove(object)
- remove specified properties
remove(object, true)
- remove by selectors, executes remove(selector)
for each selector inside of the object.
Remove stylesheet
exit()
Usage in tests
; ;
See the example.
License
MIT (c) 2017 Svetlana Linuxenko