I am trying to invert the colors using css filter
property. I have applied filter:invert(100%)
in body. I want filter property should not affect <img />
element. I have added css :not(img)
in body
. But, it won't work.
.aaa {
width: 100px;
height: 100px;
background: #00a3fe;
margin: 5px
}
body:not(img) {
filter: invert(90%)
}
<div class="aaa">
</div><div class="aaa">
</div>
<img src="http://pngimg.com/uploads/birds/birds_PNG115.png" />
body:not(img) {
=>body :not(img) {
... you need to put a space