Like the title says, I can't actually apply hue-rotate to the body
tag to change the body's background. I tried putting it in the css attributes for the html
tag to no avail.
An example of my dilemma can be seen at this codepen.
What's weird is you can add a background-color
to a button
and hue-rotate
it from the same CSS scope, but you can't do the same for the body
tag. Does anybody know why, and/or has a fix for this?
hue-rotate
tohtml
, it won't rotate the color of the background defined in thehtml
tag. However, the example with the buttons shows that you don't need tohue-rotate
a parent to affect a child. I'm wondering why we can'thue-rotate
a background color defined inhtml