A DESCRIPTION OF THE PROBLEM :
Is it possible to style caret be line or block or underline by css.
Or control the caret color by css.
I find a solution about caret color .The Link
https://stackoverflow.com/questions/27315861/hide-input-caret-of-textfield-in-javafx8/27323035#27323035
But the caretPath property would not be public on javafx11, so it can not work on javafx11.
The caret looks different than other application or webview, It seems have a shadows that will be changed when moved. The Link about the question:
https://github.com/javafxports/openjdk-jfx/issues/265