I need to parse CSS file for selectors and using Javascript to find all CSS/CSS3 selectors inside the file correctly.
For example:
.hello { ... declaration ... }
.world::after { ... declaration ... }
#id1, #id2 { ...declaration... }.top{ ..declaration.. }
I need to get an array of elements: [".hello", ".world::after", "#id1", "#id2", ".top"]
Thank you!