Whenever I have a css style that uses the pseudo selector first-child
:
.point:first-child {
margin-left: 0;
}
Could one find out if a specific DOM element has the class point
with the :first-child
pseudo-selector applied?
.getAttribute("class")
isn't effective, as it will only retrieve "point"