I have a very strange situation where I have style that apply grayscale to the whole HTML document. That’s all ok but now my images obvious have grayscale filter which I don’t want. What am trying to achieve is that images don’t have that grayscale filter but whole HTML needs to stay as it is.
<!DOCTYPE html>
<html lang="en" style="background-color:#000!important;;;;color:#fff!important;border-color:#fff!important;opacity:1!important;;;;-webkit-filter:grayscale(1);-moz-filter:grayscale(1);-ms-filter:grayscale(1);filter:grayscale(1);;">
<head>
</head>
<body tyle="webkit-filter:grayscale(1);" >
<p style="background-color:#000!important;;;;color:#fff!important;border-color:#fff!important;opacity:1!important;;">
This is text
</p>
<img class="img-fluid" src="https://blackrockdigital.github.io/startbootstrap-agency/img/portfolio/01-thumbnail.jpg" >
</body>
</html>
Also here is jsfiddle link: https://jsfiddle.net/y2xamkwe/
Can I do it with Javascript or with CSS?.
My CSS is like this
html .img-fluid {
filter:none!important
}