title: How to access css selector properties after getting access to selector
body: <pre><code>.test
  {
   color:Red;
   width: 100px;
  }
  
     var r = document.styleSheets[index].rules;   
  
     r[0].selectorText =&gt; Here we get ".test";
  </code></pre>
  
  <p>Now i want to get access of all .test properties (in this case color and width) in an array and its values ( in this case Red &amp; 100px ).How can i do this?</p>