`.CodeMirror-cursor` class does not work in Safari

Trying to make cursor be white in dark theme, I tried this

.CodeMirror-cursor {
	border-left: 1px solid white;
}

And it did nothing. I also tried solution here: Scripting on Decaf ~ Schalk Neethling with:

.CodeMirror-cursor {
  border-left: 1px solid white;
  border-right: 1px solid black;
}

        @media (prefers-color-scheme: dark) {
          .cm-cursor {
            color: white;
          }
        }

I thought this would work.

As per the docs there is this class. But it has no effect too. :crying_cat_face:

See the styling example. You have to add another selector for your rule to override the default theme.