Message from JavaScript discussions

March 2018

— Https://


Hey guys, do you know any hacks, how to determine the difference between new and old styles of the DOM node? I guess if there is a way to get particular .cssClass properties?

— Hmm..

— New and old? As in a history?

— Or do you mean style class props?

— Like if I make

.thing { color:blue; }

do you want this kind of thing in JS?
Node.cssProps.color // "blue"

Message permanent page

— I never knew about this but it works :D


— Kind of AST-like

— cssRules, right?

— rules works

— Doesn't work for me 🤔

— I just inspected the prototype to find the methods and props