let's imagine I've declared some styles (either directly on my html document or by external css file(s)):
<style>
.Red { background-color: red; }
.Green { background-color: green; }
.Blue { background-color: blue; }
</style>
In my javascript code I would like to list all available styles in Array or any other form
function getAvailableStyleNames(){
return ["Red", "Green", "Blue"]; // Dummy code. the answer would go here...
}
Thanks!