Find data from css in javascript
<p>I define several color in css
now I want to get all the colors and to do some checks for example to build new objects with all the colors , in this case i want to have object with data of the colors of the first second and third in runtime
is it possible ?</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
  &lt;style&gt;

   p.first { color: gray; }
   p.second { color: red; }
   p.third { 
    background: purple;
    color: white;
   }

  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
</code></pre>
