CSSStyleDeclaration
Last updated
Was this helpful?
Last updated
Was this helpful?
CSSStyleDeclaration is a work-a-like to the CSSStyleDeclaration class in Nikita Vasilyev's . I made it so that when using setting css attributes via $.fn.css() would work. node-jquery uses to create a DOM to use in node. jsdom uses CSSOM for styling, and CSSOM's implementation of the doesn't support , which is how jQuery's operates.
Well, NV wants to keep CSSOM fast (which I can appreciate) and CSS2Properties aren't required by the standard (though every browser has the interface). So I figured the path of least resistance would be to just modify this one class, publish it as a node module (that requires CSSOM) and then make a pull request of jsdom to use it.
npm test
should do the trick, assuming you have the dev dependencies installed: