Message from JavaScript discussions

March 2018

— Https://egghead.simplecast.fm/cd292852
https://egghead.simplecast.fm/cd292852

— 

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.. https://developer.mozilla.org/en-US/docs/Web/API/DocumentOrShadowRoot/styleSheets

— 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

document.styleSheets[0].rules

— Kind of AST-like

— cssRules, right?

— rules works

— Doesn't work for me 🤔

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