为什么!important的优先级比不过伪元素

为什么!important的优先级比不过伪元素
 div::first-line{
          color: red;
        }

 #box{
      color: green !important;
       }
 <div id="box">
        你好
    div>

img

显示为红色,请问这是为什么呢?

确实奇怪,你换个 伪元素 ::after 他就不会影响 。
我查了一下 伪元素 优先级 权重只有 1 . !important最高(无论如何它最高)

https://blog.51cto.com/u_4292381/5157298?b=totalstatistic