In #9702, we're defining that something like this works and selects the pseudo-element:
.foo, ::before, ::after {
&:hover { color: red }
}
However, it's not currently defined what the specificity of a pseudo-element is.
This is usually not observable, but will become observable now, so we also need to define that.
See #9600 for a similar bug where we defined that those are zero