Reputation: 29397
I mean the reverse of this function:
styleObj = window.getComputedStyle(node);
So something like this:
node = window.getNodeFromStyle(styleObj);
Upvotes: 0
Views: 183
Reputation: 14106
Short answer: No.
A CSSStyleDeclaration is just some style rules, they could be attached to any element.
Upvotes: 1