How to get all active styles?

Hello, the task following: there is an element on the page, for example by pressing a I would like to have all the active CSS rules, it is possible as that to do with JS or JQ? Already have a script inside which there is a direct test of listing of all properties known to me, such as if the color is not equal to #000, then output color: #color
April 4th 20 at 00:51
1 answer
April 4th 20 at 00:53
All active styles:
getComputedStyle()
All active rules are entirely different from parsley.
If memory serves, that in fact, that is to say, the analogue of JQuery .css()? He's kind of based on it works - devon_Padberg commented on April 4th 20 at 00:56
But still.=\

If you want to distinguish from the default values in ff is getDefaultComputedStyle() :)
But it's all garbage, there is no real problem, where you it took.

If you still really want something, you can try to view the source code devtools the same ff, to find out as there are active rules for the item. - wade_Hami commented on April 4th 20 at 00:59

Find more questions by tags JavaScriptjQuery