CodePen

HTML

            
              <div></div>
            
          
!

CSS

            
              *:before {
  color: red;
}

:before {
  color: green;
}

div:before {
  content: "I'd be red if * had any specificity";
}
            
          
!

JS

            
              
            
          
!
999px
Loading ..................