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 ?
<html>
<head>
<style>
p.first { color: gray; }
p.second { color: red; }
p.third {
background: purple;
color: white;
}
</style>
</head>
<body>