How can I get all CSS of an element and its children? I tried some Chrome extensions such as SnappSnippet, CssSteal but they don't work at responsive styles. They give the CSS which is only for that current resolution. I mean, let's say my codes are like this:
.example {
color: red;
}
.box {
color: black;
}
@media only screen and (max-width: 600px) {
.example {
color: blue;
}
.box {
color: orange;
}
}
<div class="example">
<div class="box">...</div>
</div>
when I used the extensions, they return only:
.example{ color:red; }
.box{ color:black; }
How can I do this with javascript? or Is there another chrome extension you recommend to me?
edit// I solved the problem by using the "cssRules" function.