You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getScoreForSelector treats pseudo-classes like pseudo-elements, but they actually have the same specificity as a regular class. It also does not handle :not() correctly, and it does not handle attribute selectors at all. The diff below is not perfect but it improves the situation:
Maybe you can create some tests instead. See the testGetScoreForSelector method in the InlineStyleTest class.
Then we can see if we can get those tests to pass.
I would like to. This is absolutely the worst excuse in the world, but I don’t have any real time to devote to this, so I am at least trying to get these things down for now and maybe I will be able to follow up in a couple…years. I did a quick search and did not find an existing specificity test suite, though that does not mean one does not exist.
getScoreForSelector treats pseudo-classes like pseudo-elements, but they actually have the same specificity as a regular class. It also does not handle
:not()
correctly, and it does not handle attribute selectors at all. The diff below is not perfect but it improves the situation:The text was updated successfully, but these errors were encountered: