I'm attempting to apply a filter to the background image of the body element. Currently, I have implemented the following code:
body {
background: url("/img/congruent_pentagon.png");
color: white;
font-family: "Raleway";
-webkit-filter: grayscale(1);
}
While this code successfully applies the grayscale filter to child elements, it does not affect the background image itself. After researching various methods used by others, I found that most involve manipulating HTML elements rather than applying filters directly to the background image. Is there a way to achieve this effect? If so, how can it be done?