Dark mode on web view on Mac

I have the following code for a web view, which produces a dark mode version on iOS but not on Mac (even when Drafts main interface is dark):

@media (prefers-color-scheme: dark)
			body, textarea, input {
				color: rgb(242,242,242);
				background: #121212;

Any hints for something better or maybe a bug?

Is your Mac in Dark mode? It’s displayed in a Safari browser, which should follow system light/dark mode settings, not the app’s.

yep. this forum is in dark mode, but the drafts web view is not