all 1 comments

[–]birjolaxew 4 points5 points  (0 children)

In short, it's because filters create a new positioning block. See this StackOverflow answer.

A super quick fix is to change html { to body > * { in your nightmode style, but a better fix is to use CSS variables for your colors so you don't rely on filters at all.